diff --git a/INSTALL.sh b/INSTALL.sh index 57eb3b2..3989c2f 100644 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -127,7 +127,6 @@ if [ -f "${OUTPUTDIR}/libffmpeg.so" ]; then install -m ${SHLIB_PERMS} "${buildfile}" "${STAGEDIR}/${INSTALLDIR}/${file}" fi - # default apps if [ -d "${OUTPUTDIR}/default_apps" ]; then cp -a "${OUTPUTDIR}/default_apps" "${STAGEDIR}/${INSTALLDIR}/" diff --git a/chromium-102-regex_pattern-array.patch b/chromium-102-regex_pattern-array.patch index e2b5e83..944fa3c 100644 --- a/chromium-102-regex_pattern-array.patch +++ b/chromium-102-regex_pattern-array.patch @@ -1,8 +1,6 @@ -Index: chromium-123.0.6312.46/components/autofill/core/browser/BUILD.gn -=================================================================== ---- chromium-123.0.6312.46.orig/components/autofill/core/browser/BUILD.gn -+++ chromium-123.0.6312.46/components/autofill/core/browser/BUILD.gn -@@ -64,6 +64,11 @@ +--- chromium-140.0.7327.6/components/autofill/core/browser/BUILD.gn 2025/08/01 09:33:04 1.1 ++++ chromium-140.0.7327.6/components/autofill/core/browser/BUILD.gn 2025/08/01 09:34:47 +@@ -75,6 +75,11 @@ } static_library("browser") { @@ -12,5 +10,5 @@ Index: chromium-123.0.6312.46/components/autofill/core/browser/BUILD.gn + ] + } sources = [ - "autofill_browser_util.cc", - "autofill_browser_util.h", + "autofill_ai_form_rationalization.cc", + "autofill_ai_form_rationalization.h", diff --git a/chromium-125-compiler.patch b/chromium-125-compiler.patch index 133bdb2..f0eca74 100644 --- a/chromium-125-compiler.patch +++ b/chromium-125-compiler.patch @@ -1,6 +1,6 @@ ---- chromium-138.0.7191.0/build/config/compiler/BUILD.gn 2025/05/26 08:54:48 1.1 -+++ chromium-138.0.7191.0/build/config/compiler/BUILD.gn 2025/05/26 08:56:08 -@@ -310,9 +310,7 @@ +--- chromium-140.0.7259.2/build/config/compiler/BUILD.gn 2025/06/27 14:34:16 1.1 ++++ chromium-140.0.7259.2/build/config/compiler/BUILD.gn 2025/06/27 14:36:19 +@@ -312,9 +312,7 @@ configs += [ # See the definitions below. @@ -10,11 +10,11 @@ ":compiler_codegen", ":compiler_deterministic", ":clang_warning_suppression", -@@ -581,63 +579,6 @@ +@@ -603,66 +603,6 @@ ldflags += [ "-Wl,-z,keep-text-section-prefix" ] } -- if (is_clang && !is_nacl) { +- if (is_clang) { - cflags += [ "-fcrash-diagnostics-dir=" + clang_diagnostic_dir ] - if (save_reproducers_on_lld_crash && use_lld) { - ldflags += [ @@ -65,7 +65,10 @@ - # 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. +- # It also causes segfault on Linux s390x: +- # https://github.com/llvm/llvm-project/issues/149511 - if (is_linux && use_lld && !llvm_android_mainline && current_cpu != "arm" && +- current_cpu != "s390x" && - default_toolchain != "//build/toolchain/cros:target") { - cflags += [ "-Wa,--crel,--allow-experimental-crel" ] - } @@ -73,8 +76,8 @@ - # C11/C++11 compiler flags setup. # --------------------------- - if (is_linux || is_chromeos || is_android || (is_nacl && is_clang) || -@@ -1596,52 +1537,6 @@ + if (is_linux || is_chromeos || is_android || current_os == "aix") { +@@ -1598,43 +1539,6 @@ } } @@ -85,26 +88,17 @@ - # different build directory like "out/feature_a" and "out/feature_b" if - # we build same files with same compile flag. - # Other paths are already given in relative, no need to normalize them. -- if (is_nacl) { -- # TODO(https://crbug.com/1231236): Use -ffile-compilation-dir= here. -- cflags += [ -- "-Xclang", -- "-fdebug-compilation-dir", -- "-Xclang", -- ".", -- ] -- } else { -- # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir= -- # and -fcoverage-compilation-dir=. -- cflags += [ "-ffile-compilation-dir=." ] - -- # Convert absolute paths to relative paths. Expands to, for example: -- # -file-prefix-map /path/to/chromium/src=../.. -- swiftflags += [ -- "-file-prefix-map", -- rebase_path("//.", "") + "=" + rebase_path("//.", root_build_dir), -- ] -- } +- # -ffile-compilation-dir is an alias for both -fdebug-compilation-dir= +- # and -fcoverage-compilation-dir=. +- cflags += [ "-ffile-compilation-dir=." ] +- +- # Convert absolute paths to relative paths. Expands to, for example: +- # -file-prefix-map /path/to/chromium/src=../.. +- swiftflags += [ +- "-file-prefix-map", +- rebase_path("//.", "") + "=" + rebase_path("//.", root_build_dir), +- ] - if (!is_win) { - # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167) - asmflags = [ "-Wa,-fdebug-compilation-dir,." ] @@ -127,7 +121,7 @@ # Tells the compiler not to use absolute paths when passing the default # paths to the tools it invokes. We don't want this because we don't # really need it and it can mess up the RBE cache entries. -@@ -1660,87 +1555,6 @@ +@@ -1661,87 +1565,6 @@ } } @@ -215,7 +209,7 @@ # Controls the usage of a warning suppression mapping (WSM) file to suppress # warnings based on the path of the file they come from. It's controlled by the # `clang_warning_suppression_file` gn argument , which points to a text file -@@ -2231,10 +2045,6 @@ +@@ -2229,10 +2052,6 @@ } } else { cflags = [ "-Wall" ] @@ -226,7 +220,7 @@ # In Chromium code, we define __STDC_foo_MACROS in order to get the # C99 macros on Mac and Linux. -@@ -2243,24 +2053,6 @@ +@@ -2241,24 +2060,6 @@ "__STDC_FORMAT_MACROS", ] @@ -251,7 +245,7 @@ if (is_apple) { cflags_objc = [ "-Wimplicit-retain-self" ] cflags_objcc = [ "-Wimplicit-retain-self" ] -@@ -2676,7 +2468,8 @@ +@@ -2673,7 +2474,8 @@ # [0]: https://pinpoint-dot-chromeperf.appspot.com/job/147634a8be0000 # [1]: https://pinpoint-dot-chromeperf.appspot.com/job/132bc772be0000 # [2]: https://crrev.com/c/5447532 @@ -261,7 +255,7 @@ if (is_win) { # clang-cl's /O2 corresponds to clang's -O3, and really want -O2 for # consistency with the other platforms. -@@ -2725,7 +2518,8 @@ +@@ -2722,7 +2524,8 @@ } # Turn off optimizations. @@ -271,28 +265,28 @@ if (is_win) { cflags = [ "/Od", # Disable optimization. -@@ -2760,7 +2554,8 @@ +@@ -2757,7 +2560,8 @@ # Turns up the optimization level. Used to explicitly enable -O2 instead of # -Os for select targets on platforms that use optimize_for_size. No-op # elsewhere. -config("optimize_max") { +config("optimize_max") { } +config("xoptimize_max") { - if (is_nacl && is_nacl_irt) { - # The NaCl IRT is a special case and always wants its own config. - # Various components do: -@@ -2793,7 +2588,8 @@ + ldflags = common_optimize_on_ldflags + if (is_win) { + # Favor speed over size, /O2 must be before the common flags. +@@ -2778,7 +2582,8 @@ # # TODO(crbug.com/41259697) - rework how all of these configs are related # so that we don't need this disclaimer. -config("optimize_speed") { +config("optimize_speed") { } +config("xoptimize_speed") { - if (is_nacl && is_nacl_irt) { - # The NaCl IRT is a special case and always wants its own config. - # Various components do: -@@ -2822,7 +2618,8 @@ - } + ldflags = common_optimize_on_ldflags + if (is_win) { + # Favor speed over size, /O2 must be before the common flags. +@@ -2795,7 +2600,8 @@ + rustflags = [ "-Copt-level=3" ] } -config("optimize_fuzzing") { @@ -301,7 +295,7 @@ cflags = [ "-O1" ] + common_optimize_on_cflags rustflags = [ "-Copt-level=1" ] ldflags = common_optimize_on_ldflags -@@ -2953,7 +2750,8 @@ +@@ -2922,7 +2728,8 @@ } # Full symbols. @@ -311,7 +305,7 @@ rustflags = [] configs = [] if (is_win) { -@@ -3124,7 +2922,8 @@ +@@ -3089,7 +2896,8 @@ # Minimal symbols. # This config guarantees to hold symbol for stack trace which are shown to user # when crash happens in unittests running on buildbot. @@ -321,7 +315,7 @@ rustflags = [] if (is_win) { # Functions, files, and line tables only. -@@ -3209,7 +3008,8 @@ +@@ -3165,7 +2973,8 @@ # This configuration contains function names only. That is, the compiler is # told to not generate debug information and the linker then just puts function # names in the final debug information. diff --git a/chromium-139.0.7258.154-linux.tar.xz b/chromium-139.0.7258.154-linux.tar.xz deleted file mode 100644 index 62ed2d6..0000000 --- a/chromium-139.0.7258.154-linux.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b8d77d5daaede589a5f77ea79bf3e11ada53ab7ace1ca083cc2e5399d9bc53e8 -size 1605973936 diff --git a/chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch b/chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch new file mode 100644 index 0000000..ef4e8e0 --- /dev/null +++ b/chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch @@ -0,0 +1,15 @@ +--- chromium-140.0.7339.5/build/rust/allocator/lib.rs 2025/08/12 12:48:58 1.1 ++++ chromium-140.0.7339.5/build/rust/allocator/lib.rs 2025/08/12 12:49:30 +@@ -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-140-old-flac.patch b/chromium-140-old-flac.patch new file mode 100644 index 0000000..fdf4046 --- /dev/null +++ b/chromium-140-old-flac.patch @@ -0,0 +1,11 @@ +--- chromium-140.0.7339.5/media/audio/flac_audio_handler.cc 2025/08/13 10:29:53 1.1 ++++ chromium-140.0.7339.5/media/audio/flac_audio_handler.cc 2025/08/13 10:30:09 +@@ -166,7 +166,7 @@ + // `FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA` is the last enumeration + // value of `FLAC__StreamDecoderErrorStatus`. The legal status value should be + // less than or equal to it. +- CHECK_LE(status, FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA); ++ // CHECK_LE(status, FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA); + LOG(ERROR) << "Got an error callback: " + // SAFETY: The above CHECK ensures that `status` does not exceed + // the length of `FLAC__StreamDecoderErrorStatusString` diff --git a/chromium-140.0.7339.80-linux.tar.xz b/chromium-140.0.7339.80-linux.tar.xz new file mode 100644 index 0000000..da51926 --- /dev/null +++ b/chromium-140.0.7339.80-linux.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76e2b9ff34c67c2049c678b0b693942ff4e79ad7fbbe96fba434e37e39878050 +size 1619643248 diff --git a/chromium-libusb_interrupt_event_handler.patch b/chromium-libusb_interrupt_event_handler.patch index 5f53dc1..ce283d2 100644 --- a/chromium-libusb_interrupt_event_handler.patch +++ b/chromium-libusb_interrupt_event_handler.patch @@ -1,10 +1,10 @@ diff -up chromium-48.0.2564.116/services/device/usb/usb_context.cc.modern-libusbx chromium-48.0.2564.116/device/usb/usb_context.cc --- chromium-48.0.2564.116/services/device/usb/usb_context.cc.modern-libusbx 2016-02-24 10:21:10.534996028 -0500 +++ chromium-48.0.2564.116/services/device/usb/usb_context.cc 2016-02-24 10:22:28.270499864 -0500 -@@ -57,7 +57,11 @@ void UsbContext::UsbEventHandler::Run() +@@ -63,7 +63,11 @@ void UsbContext::UsbEventHandler::Stop() { - base::subtle::Release_Store(&running_, 0); + running_.store(false, std::memory_order_release); +#ifdef LIBUSB_API_VERSION >= 0x01000105 + libusb_interrupt_event_handler(context_); +#else diff --git a/chromium.changes b/chromium.changes index 9dbd6a9..189a7c1 100644 --- a/chromium.changes +++ b/chromium.changes @@ -1,3 +1,50 @@ +------------------------------------------------------------------- +Tue Sep 2 22:29:06 UTC 2025 - Andreas Stieger + +- Chromium 140.0.7339.80 (boo#1249093): + * new permission prompt for local network access + * 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 + * Various fixes from internal audits, fuzzing and other initiatives + +------------------------------------------------------------------- +Tue Sep 2 23:02:23 CEST 2025 - ro@suse.de + +- modified patches: + ppc-fedora-0002-regenerate-xnn-buildgn.patch + (updated from debian) + +------------------------------------------------------------------- +Thu Aug 28 18:06:15 UTC 2025 - Andreas Stieger + +- Chromium 140.0.7339.41 + (early stable released 2025-08-27) +- modified patches: + chromium-125-compiler.patch + chromium-libusb_interrupt_event_handler.patch + gcc-enable-lto.patch + ppc-fedora-fix-unknown-warning-option-messages.diff + ppc-fedora-0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch + ppc-fedora-add-ppc64-architecture-to-extensions.diff + chromium-102-regex_pattern-array.patch + gtk-414.patch + ppc-fedora-fix-study-crash.patch + ppc-fedora-0002-regenerate-xnn-buildgn.patch (stub, needs to be redone) + ppc-fedora-0001-Add-pregenerated-config-for-libaom-on-ppc64.patch +- added patches: + chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch + (revert of upstream patch + 8393b61ba876c8e1614275c97767f9b06b889f48) + chromium-140-old-flac.patch (applied for flac < 1.5.0) +- change rust_version to 1.86 +- keeplibs: + removed buildtools/third_party/eu-strip (gone upstream) + removed wasm_tts_engine (gone upstream) +- bump gn BuildReq to 0.20250619 +- do not use system_harfbuzz for 16+ for now, unbundle is broken + ------------------------------------------------------------------- Wed Aug 27 12:12:26 CEST 2025 - ro@suse.de diff --git a/chromium.spec b/chromium.spec index b81ab0b..0e0fd5d 100644 --- a/chromium.spec +++ b/chromium.spec @@ -42,7 +42,7 @@ %bcond_without swiftshader %endif %if 0%{?suse_version} >= 1600 -%bcond_without system_harfbuzz +%bcond_with system_harfbuzz %bcond_without system_freetype %bcond_without arm_bti # ERROR Unresolved dependencies. @@ -67,7 +67,7 @@ # LLVM version %define llvm_version 19 # RUST version -%define rust_version 1.85 +%define rust_version 1.86 # GCC version %define gcc_version 14 # esbuild version @@ -100,6 +100,11 @@ %else %bcond_with gtk4_4_19 %endif +%if %{pkg_vcmp flac-devel >= 1.5.0} +%bcond_without flac_1_5 +%else +%bcond_with flac_1_5 +%endif # Package names %if %{with is_beta} %define chromedriver_name %{name}-chromedriver @@ -112,7 +117,7 @@ %global official_build 1 Name: chromium%{n_suffix} -Version: 139.0.7258.154 +Version: 140.0.7339.80 Release: 0 Summary: Google's open source browser project License: BSD-3-Clause AND LGPL-2.1-or-later @@ -162,6 +167,7 @@ Patch375: chromium-131-fix-qt-ui.pach Patch376: chromium-135-add_map_droppable.patch Patch377: chromium-139-deterministic.patch Patch378: chromium-139-pdfium-openjpeg-CVE-2025-54874.patch +Patch379: chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch # conditionally applied patches ppc64le only Patch401: ppc-fedora-add-ppc64-architecture-string.patch Patch402: ppc-fedora-0001-linux-seccomp-bpf-ppc64-glibc-workaround-in-SIGSYS-h.patch @@ -231,6 +237,8 @@ Patch1010: chromium-124-system-libxml.patch Patch1030: chromium-134-revert-rust-adler2.patch # gtk4 is too old Patch1040: gtk-414.patch +# flac is too old +Patch1050: chromium-140-old-flac.patch # end conditionally applied patches BuildRequires: SDL-devel BuildRequires: bison @@ -240,7 +248,7 @@ BuildRequires: elfutils BuildRequires: fdupes BuildRequires: flex BuildRequires: git -BuildRequires: gn >= 0.20250520 +BuildRequires: gn >= 0.20250619 BuildRequires: gperf BuildRequires: hicolor-icon-theme BuildRequires: golang(API) @@ -505,6 +513,10 @@ WebDriver is an open source tool for automated testing of webapps across many br %patch -p1 -R -P 1040 %endif +%if %{without flac_1_5} +%patch -p1 -P 1050 +%endif + %build # esbuild rm third_party/devtools-frontend/src/third_party/esbuild/esbuild @@ -526,9 +538,6 @@ rm -f third_party/node/linux/node-linux-x64/bin/node ln -s %{_bindir}/node third_party/node/linux/node-linux-x64/bin/node sed -i -e "s@^NODE_VERSION=.*@NODE_VERSION=\"v%{node_version}\"@" third_party/node/update_node_binaries -rm buildtools/third_party/eu-strip/bin/eu-strip -ln -s %{_bindir}/eu-strip buildtools/third_party/eu-strip/bin/eu-strip - # python3 mkdir -p $HOME/bin %if 0%{?suse_version} >= 1600 @@ -562,7 +571,6 @@ keeplibs=( base/third_party/superfasthash base/third_party/symbolize base/third_party/xdg_user_dirs - buildtools/third_party/eu-strip buildtools/third_party/libc++ buildtools/third_party/libc++abi buildtools/third_party/libunwind @@ -769,7 +777,6 @@ keeplibs=( third_party/utf third_party/vulkan third_party/wayland - third_party/wasm_tts_engine third_party/webdriver third_party/webgpu-cts third_party/webrtc diff --git a/gcc-enable-lto.patch b/gcc-enable-lto.patch index 402d394..1b2e71f 100644 --- a/gcc-enable-lto.patch +++ b/gcc-enable-lto.patch @@ -11,8 +11,8 @@ Index: chromium-120.0.6099.18/build/config/BUILDCONFIG.gn # Set to true when compiling with the Clang compiler. is_clang = current_os != "linux" || (current_cpu != "s390x" && current_cpu != "s390" && -@@ -354,6 +356,12 @@ default_compiler_configs = [ - "//build/config/sanitizers:default_sanitizer_flags", +@@ -389,6 +389,12 @@ + "//build/config:feature_flags", ] +if (gcc_lto) { @@ -28,8 +28,8 @@ Index: chromium-120.0.6099.18/build/config/compiler/BUILD.gn =================================================================== --- chromium-120.0.6099.18.orig/build/config/compiler/BUILD.gn +++ chromium-120.0.6099.18/build/config/compiler/BUILD.gn -@@ -2342,6 +2342,10 @@ if (is_win) { - common_optimize_on_cflags += [ "-fno-math-errno" ] +@@ -2672,6 +2672,10 @@ + } } +config("gcc_lto") { diff --git a/gtk-414.patch b/gtk-414.patch index 484f91b..bfc1663 100644 --- a/gtk-414.patch +++ b/gtk-414.patch @@ -110,7 +110,7 @@ index efe6321149679..239fbf4ca69a1 100644 - GdkTexture* texture = GetTextureFromRenderNode(node); size_t nbytes = width * height * sizeof(SkColor); SkColor* pixels = reinterpret_cast(g_malloc(nbytes)); -+ memset(pixels, 0, nbytes); ++ UNSAFE_TODO(memset(pixels, 0, nbytes)); size_t stride = sizeof(SkColor) * width; - gdk_texture_download(texture, reinterpret_cast(pixels), stride); + if (GdkTexture* texture = GetTextureFromRenderNode(node)) { @@ -118,7 +118,7 @@ index efe6321149679..239fbf4ca69a1 100644 + } SkColor fg = GtkStyleContextGetColor(button_context); for (int i = 0; i < width * height; ++i) { - pixels[i] = SkColorSetA(fg, SkColorGetA(pixels[i])); + UNSAFE_TODO(pixels[i]) = @@ -199,7 +201,7 @@ void CalculateUnscaledButtonSize( gfx::Size* button_size, gfx::Insets* button_margin) { diff --git a/ppc-fedora-0001-Add-pregenerated-config-for-libaom-on-ppc64.patch b/ppc-fedora-0001-Add-pregenerated-config-for-libaom-on-ppc64.patch index 9d84a7b..605fbc2 100644 --- a/ppc-fedora-0001-Add-pregenerated-config-for-libaom-on-ppc64.patch +++ b/ppc-fedora-0001-Add-pregenerated-config-for-libaom-on-ppc64.patch @@ -2052,7 +2052,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); diff --git a/ppc-fedora-0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch b/ppc-fedora-0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch index 922cb13..c8042af 100644 --- a/ppc-fedora-0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch +++ b/ppc-fedora-0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch @@ -16,7 +16,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy. =================================================================== --- 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) +@@ -90,7 +90,8 @@ SyscallSets::IsPrctl(sysno) || SyscallSets::IsProcessGroupOrSession(sysno) || #if defined(__i386__) || \ @@ -26,7 +26,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy. SyscallSets::IsSocketCall(sysno) || #endif #if defined(__arm__) -@@ -259,7 +259,7 @@ +@@ -254,7 +255,7 @@ // TODO(crbug.com/40528912): should i386 really be in this list? #if defined(__i386__) || defined(__x86_64__) || defined(__mips__) || \ @@ -35,7 +35,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/baseline_policy. if (sysno == __NR_mmap) return RestrictMmapFlags(); #endif -@@ -340,7 +341,8 @@ ResultExpr EvaluateSyscallImpl(int fs_de +@@ -336,7 +337,8 @@ } #if defined(__i386__) || \ @@ -392,7 +392,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc #endif case __NR_write: @@ -650,11 +651,12 @@ - case __NR_vmsplice: + #endif // send* syscalls need their flags filtered. #if defined(__arm__) || \ - (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)) diff --git a/ppc-fedora-0002-regenerate-xnn-buildgn.patch b/ppc-fedora-0002-regenerate-xnn-buildgn.patch index 6161f12..ae3c761 100644 --- a/ppc-fedora-0002-regenerate-xnn-buildgn.patch +++ b/ppc-fedora-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/ppc-fedora-add-ppc64-architecture-to-extensions.diff b/ppc-fedora-add-ppc64-architecture-to-extensions.diff index 21334ab..683f1c1 100644 --- a/ppc-fedora-add-ppc64-architecture-to-extensions.diff +++ b/ppc-fedora-add-ppc64-architecture-to-extensions.diff @@ -2,45 +2,26 @@ Index: chromium-128.0.6613.113/chrome/browser/extensions/api/runtime/chrome_runt =================================================================== --- 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 -@@ -310,6 +310,8 @@ - info->arch = extensions::api::runtime::PlatformArch::kMips; - } else if (strcmp(arch, "mips64el") == 0) { +@@ -348,6 +348,8 @@ 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(); } -@@ -325,6 +327,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(); - } 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."}, +@@ -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 @@ - {"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/ppc-fedora-fix-study-crash.patch b/ppc-fedora-fix-study-crash.patch index d3ebafb..266786a 100644 --- a/ppc-fedora-fix-study-crash.patch +++ b/ppc-fedora-fix-study-crash.patch @@ -10,9 +10,9 @@ } // 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 @@ +--- chromium-140.0.7339.5/components/variations/service/variations_field_trial_creator.cc 2025/08/12 14:50:52 1.1 ++++ chromium-140.0.7339.5/components/variations/service/variations_field_trial_creator.cc 2025/08/12 14:51:32 +@@ -105,6 +105,9 @@ if (process_arch == "x86") { return Study::X86_32; } diff --git a/ppc-fedora-fix-unknown-warning-option-messages.diff b/ppc-fedora-fix-unknown-warning-option-messages.diff index d053ff0..bba53a3 100644 --- a/ppc-fedora-fix-unknown-warning-option-messages.diff +++ b/ppc-fedora-fix-unknown-warning-option-messages.diff @@ -2,15 +2,27 @@ 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 -@@ -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" ] - } +@@ -1835,12 +1835,16 @@ + cflags_cc += [ + # See comment for -Wno-c++11-narrowing. + "-Wno-narrowing", +- +- # -Wno-class-memaccess warns about hash table and vector in blink. +- # But the violation is intentional. +- "-Wno-class-memaccess", + ] ++ if (current_cpu != "ppc64") { ++ cflags_cc += [ ++ # -Wno-class-memaccess warns about hash table and vector in blink. ++ # But the violation is intentional. ++ "-Wno-class-memaccess", ++ ] ++ } ++ + # -Wunused-local-typedefs is broken in gcc, + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63872 + cflags += [ "-Wno-unused-local-typedefs" ] @@ -1854,7 +1854,9 @@ config("default_warnings") { # Don't warn about "maybe" uninitialized. Clang doesn't include this