diff --git a/chromium-125-compiler.patch b/chromium-125-compiler.patch index 824d3b9..ccc75c4 100644 --- a/chromium-125-compiler.patch +++ b/chromium-125-compiler.patch @@ -1,8 +1,8 @@ -Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn +Index: chromium-144.0.7524.0/build/config/compiler/BUILD.gn =================================================================== ---- chromium-142.0.7444.3.orig/build/config/compiler/BUILD.gn -+++ chromium-142.0.7444.3/build/config/compiler/BUILD.gn -@@ -345,9 +345,7 @@ config("compiler") { +--- chromium-144.0.7524.0.orig/build/config/compiler/BUILD.gn ++++ chromium-144.0.7524.0/build/config/compiler/BUILD.gn +@@ -357,9 +357,7 @@ config("compiler") { configs += [ # See the definitions below. @@ -12,7 +12,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn ":compiler_codegen", ":compiler_deterministic", ":clang_warning_suppression", -@@ -657,61 +655,6 @@ config("compiler") { +@@ -669,61 +667,6 @@ config("compiler") { ldflags += [ "-Wl,-z,keep-text-section-prefix" ] } @@ -74,7 +74,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn # C11/C++11 compiler flags setup. # --------------------------- if (is_linux || is_chromeos || is_android || current_os == "aix") { -@@ -1683,43 +1626,6 @@ config("compiler_deterministic") { +@@ -1671,43 +1614,6 @@ config("compiler_deterministic") { } } @@ -118,7 +118,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn # 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. -@@ -1746,88 +1652,6 @@ config("compiler_deterministic") { +@@ -1740,88 +1646,6 @@ config("compiler_deterministic") { } } @@ -207,7 +207,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn # 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 -@@ -2318,10 +2142,6 @@ config("chromium_code") { +@@ -2338,10 +2162,6 @@ config("chromium_code") { } } else { cflags = [ "-Wall" ] @@ -218,14 +218,14 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn # In Chromium code, we define __STDC_foo_MACROS in order to get the # C99 macros on Mac and Linux. -@@ -2330,24 +2150,6 @@ config("chromium_code") { +@@ -2350,24 +2170,6 @@ config("chromium_code") { "__STDC_FORMAT_MACROS", ] - if (!is_debug && !using_sanitizer && current_cpu != "s390x" && -- current_cpu != "s390" && current_cpu != "ppc64" && -- current_cpu != "mips" && current_cpu != "mips64" && -- current_cpu != "riscv64" && current_cpu != "loong64") { +- current_cpu != "ppc64" && current_cpu != "mips" && +- current_cpu != "mips64" && current_cpu != "riscv64" && +- current_cpu != "loong64") { - # Non-chromium code is not guaranteed to compile cleanly with - # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are - # disabled, so only do that for Release build. @@ -243,7 +243,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn if (is_apple) { cflags_objc = [ "-Wimplicit-retain-self" ] cflags_objcc = [ "-Wimplicit-retain-self" ] -@@ -2775,7 +2577,8 @@ config("default_stack_frames") { +@@ -2795,7 +2597,8 @@ config("default_stack_frames") { # [0]: https://pinpoint-dot-chromeperf.appspot.com/job/147634a8be0000 # [1]: https://pinpoint-dot-chromeperf.appspot.com/job/132bc772be0000 # [2]: https://crrev.com/c/5447532 @@ -253,7 +253,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn if (is_win) { # clang-cl's /O2 corresponds to clang's -O3, and really want -O2 for # consistency with the other platforms. -@@ -2824,7 +2627,8 @@ config("optimize") { +@@ -2844,7 +2647,8 @@ config("optimize") { } # Turn off optimizations. @@ -263,7 +263,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn if (is_win) { cflags = [ "/Od", # Disable optimization. -@@ -2859,7 +2663,8 @@ config("no_optimize") { +@@ -2879,7 +2683,8 @@ config("no_optimize") { # 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. @@ -273,7 +273,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn ldflags = common_optimize_on_ldflags if (is_win) { # Favor speed over size, /O2 must be before the common flags. -@@ -2880,7 +2685,8 @@ config("optimize_max") { +@@ -2900,7 +2705,8 @@ config("optimize_max") { # # TODO(crbug.com/41259697) - rework how all of these configs are related # so that we don't need this disclaimer. @@ -283,7 +283,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn ldflags = common_optimize_on_ldflags if (is_win) { # Favor speed over size, /O2 must be before the common flags. -@@ -2897,7 +2703,8 @@ config("optimize_speed") { +@@ -2917,7 +2723,8 @@ config("optimize_speed") { rustflags = [ "-Copt-level=3" ] } @@ -293,7 +293,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn cflags = [ "-O1" ] + common_optimize_on_cflags rustflags = [ "-Copt-level=1" ] ldflags = common_optimize_on_ldflags -@@ -3024,7 +2831,8 @@ config("win_pdbaltpath") { +@@ -3044,7 +2851,8 @@ config("win_pdbaltpath") { } # Full symbols. @@ -303,7 +303,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn rustflags = [] configs = [] if (is_win) { -@@ -3189,7 +2997,8 @@ config("symbols") { +@@ -3209,7 +3017,8 @@ config("symbols") { # Minimal symbols. # This config guarantees to hold symbol for stack trace which are shown to user # when crash happens in unittests running on buildbot. @@ -313,7 +313,7 @@ Index: chromium-142.0.7444.3/build/config/compiler/BUILD.gn rustflags = [] if (is_win) { # Functions, files, and line tables only. -@@ -3265,7 +3074,8 @@ config("minimal_symbols") { +@@ -3285,7 +3094,8 @@ config("minimal_symbols") { # 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-127-bindgen.patch b/chromium-127-bindgen.patch index 884e367..27ede0a 100644 --- a/chromium-127-bindgen.patch +++ b/chromium-127-bindgen.patch @@ -8,14 +8,16 @@ we'd expect libclang to be in the same directory as bindgen. That fix should probably go upstream. ---- a/build/rust/rust_bindgen.gni -+++ b/build/rust/rust_bindgen.gni -@@ -18,7 +18,7 @@ if (host_os == "win") { +Index: chromium-144.0.7524.0/build/rust/rust_bindgen.gni +=================================================================== +--- chromium-144.0.7524.0.orig/build/rust/rust_bindgen.gni ++++ chromium-144.0.7524.0/build/rust/rust_bindgen.gni +@@ -19,7 +19,7 @@ if (host_os == "win") { # On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in # ../lib. -_libclang_path = rust_bindgen_root +_libclang_path = clang_base_path - if (host_os == "win") { - _libclang_path += "/bin" - } else { + if (!use_chromium_rust_toolchain && + (current_cpu == "ppc64" || current_cpu == "s390x")) { + _libclang_path = rust_sysroot_absolute + "/lib64" diff --git a/chromium-127-rust-clanglib.patch b/chromium-127-rust-clanglib.patch index e82a53f..6c21dcd 100644 --- a/chromium-127-rust-clanglib.patch +++ b/chromium-127-rust-clanglib.patch @@ -1,8 +1,9 @@ -diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.6533.72/build/rust/rust_bindgen.gni ---- chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me 2024-07-25 16:11:18.754551595 +0200 -+++ chromium-127.0.6533.72/build/rust/rust_bindgen.gni 2024-07-25 16:11:33.997837660 +0200 -@@ -23,7 +23,7 @@ - if (host_os == "win") { +Index: chromium-144.0.7524.0/build/rust/rust_bindgen.gni +=================================================================== +--- chromium-144.0.7524.0.orig/build/rust/rust_bindgen.gni ++++ chromium-144.0.7524.0/build/rust/rust_bindgen.gni +@@ -26,7 +26,7 @@ if (!use_chromium_rust_toolchain && + } else if (host_os == "win") { _libclang_path += "/bin" } else { - _libclang_path += "/lib" @@ -10,7 +11,7 @@ diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.65 } # Template to build Rust/C bindings with bindgen. -@@ -111,6 +111,13 @@ +@@ -129,6 +129,13 @@ template("rust_bindgen") { deps += [ ":${_rust_bindgen_generator_name}_static_fns" ] } @@ -24,10 +25,12 @@ diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.65 if (defined(cpp) && cpp) { # This cfg is used to control the bindings public export. rustflags = [ ---- chromium-132.0.6811.2/build/rust/rust_bindgen_generator.gni 2024/11/07 11:34:54 1.1 -+++ chromium-132.0.6811.2/build/rust/rust_bindgen_generator.gni 2024/11/07 11:35:41 -@@ -22,7 +22,7 @@ - if (host_os == "win") { +Index: chromium-144.0.7524.0/build/rust/rust_bindgen_generator.gni +=================================================================== +--- chromium-144.0.7524.0.orig/build/rust/rust_bindgen_generator.gni ++++ chromium-144.0.7524.0/build/rust/rust_bindgen_generator.gni +@@ -33,7 +33,7 @@ if (!use_chromium_rust_toolchain && + } else if (host_os == "win") { _libclang_path += "/bin" } else { - _libclang_path += "/lib" @@ -35,7 +38,7 @@ diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.65 } # Template to build Rust/C bindings with bindgen. -@@ -266,6 +266,8 @@ +@@ -269,6 +269,8 @@ template("rust_bindgen_generator") { # causes bindgen not to emit function bindings. Override it. if (!is_win) { args += [ "-fvisibility=default" ] @@ -44,13 +47,3 @@ diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.65 } if (is_win) { ---- chromium-132.0.6811.2/build/config/gcc/BUILD.gn 2024/11/07 14:13:22 1.1 -+++ chromium-132.0.6811.2/build/config/gcc/BUILD.gn 2024/11/07 14:13:45 -@@ -32,7 +32,6 @@ - # See http://gcc.gnu.org/wiki/Visibility - config("symbol_visibility_hidden") { - cflags = [ "-fvisibility=hidden" ] -- rustflags = [ "-Zdefault-visibility=hidden" ] - - # Visibility attribute is not supported on AIX. - if (current_os != "aix") { diff --git a/chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch b/chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch deleted file mode 100644 index cc3acf7..0000000 --- a/chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch +++ /dev/null @@ -1,17 +0,0 @@ -Index: chromium-142.0.7444.3/build/rust/allocator/lib.rs -=================================================================== ---- chromium-142.0.7444.3.orig/build/rust/allocator/lib.rs -+++ chromium-142.0.7444.3/build/rust/allocator/lib.rs -@@ -96,6 +96,12 @@ mod both_allocators { - 0 - } - -+ // TODO(crbug.com/422538133) Remove after rolling past -+ // https://github.com/rust-lang/rust/pull/141061 -+ #[unsafe(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-142-rust-revert_should_panic.patch b/chromium-142-rust-revert_should_panic.patch deleted file mode 100644 index d848354..0000000 --- a/chromium-142-rust-revert_should_panic.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- chromium-142.0.7444.34/build/rust/allocator/lib.rs 2025/10/22 22:02:11 1.1 -+++ chromium-142.0.7444.34/build/rust/allocator/lib.rs 2025/10/22 22:02:46 -@@ -102,6 +102,12 @@ - #[linkage = "weak"] - static __rust_no_alloc_shim_is_unstable: u8 = 0; - -+ // TODO(crbug.com/440481922): Remove this after rolling past https://github.com/rust-lang/rust/pull/143387 -+ #[rustc_std_internal_symbol] -+ #[allow(non_upper_case_globals)] -+ #[linkage = "weak"] -+ static __rust_alloc_error_handler_should_panic: u8 = 0; -+ - // Mangle the symbol name as rustc expects. - #[rustc_std_internal_symbol] - #[allow(non_upper_case_globals)] diff --git a/chromium-143.0.7499.192-linux.tar.xz b/chromium-143.0.7499.192-linux.tar.xz deleted file mode 100644 index 0d675dd..0000000 --- a/chromium-143.0.7499.192-linux.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:01b2db3c4b89b96b3b18e889b7ef583ca243dd90d27f46c3c0115d298618501c -size 1140785448 diff --git a/chromium-144-revert-libxml-2.13.patch b/chromium-144-revert-libxml-2.13.patch new file mode 100644 index 0000000..48ed79c --- /dev/null +++ b/chromium-144-revert-libxml-2.13.patch @@ -0,0 +1,53 @@ +--- chromium-144.0.7534.0/third_party/blink/renderer/core/xml/parser/xml_document_parser.cc 2025/11/25 11:00:53 1.1 ++++ chromium-144.0.7534.0/third_party/blink/renderer/core/xml/parser/xml_document_parser.cc 2025/11/25 11:01:09 +@@ -617,6 +617,10 @@ + } + + static bool ShouldAllowExternalLoad(const KURL& url) { ++ if (RuntimeEnabledFeatures::XMLNoExternalEntitiesEnabled()) { ++ return false; ++ } ++ + String url_string = url.GetString(); + + // libxml should not be configured with catalogs enabled, so it +@@ -756,18 +760,7 @@ + InitializeLibXMLIfNecessary(); + xmlParserCtxtPtr parser = + xmlCreatePushParserCtxt(handlers, nullptr, nullptr, 0, nullptr); +- +- int32_t options = XML_PARSE_HUGE | XML_PARSE_NOENT; +- +- // See https://crbug.com/455813733: We choose to prevent network loads of +- // external entities and DTDs here, but not in xmlReadMemory of +- // XmlDocPtrForString and in XSLTStyleSheet::Parse in order not to overlap +- // with XSLT deprecation. +- if (RuntimeEnabledFeatures::XMLNoExternalEntitiesEnabled()) { +- options |= XML_PARSE_NO_XXE; +- } +- +- xmlCtxtUseOptions(parser, options); ++ xmlCtxtUseOptions(parser, XML_PARSE_HUGE | XML_PARSE_NOENT); + parser->_private = user_data; + return base::AdoptRef(new XMLParserContext(parser)); + } +@@ -793,17 +786,8 @@ + // XML_PARSE_NODICT: default dictionary option. + // XML_PARSE_NOENT: force entities substitutions. + // XML_PARSE_HUGE: don't impose arbitrary limits on document size. +- int32_t options = XML_PARSE_NODICT | XML_PARSE_NOENT | XML_PARSE_HUGE; +- +- // See https://crbug.com/455813733: We choose to prevent network loads of +- // external entities and DTDs here, but not in xmlReadMemory of +- // XmlDocPtrForString and in XSLTStyleSheet::Parse in order not to overlap +- // with XSLT deprecation. +- if (RuntimeEnabledFeatures::XMLNoExternalEntitiesEnabled()) { +- options |= XML_PARSE_NO_XXE; +- } +- +- xmlCtxtUseOptions(parser, options); ++ xmlCtxtUseOptions(parser, ++ XML_PARSE_NODICT | XML_PARSE_NOENT | XML_PARSE_HUGE); + + parser->_private = user_data; + diff --git a/chromium-144-revert_gfx_value_or.patch b/chromium-144-revert_gfx_value_or.patch new file mode 100644 index 0000000..8fd4e45 --- /dev/null +++ b/chromium-144-revert_gfx_value_or.patch @@ -0,0 +1,40 @@ +--- chromium-144.0.7524.0/ui/gfx/paint_vector_icon.cc 2025/11/18 14:33:28 1.1 ++++ chromium-144.0.7524.0/ui/gfx/paint_vector_icon.cc 2025/11/18 14:35:00 +@@ -235,7 +235,7 @@ + break; + + case H_LINE_TO: { +- const SkPoint last_point = path.getLastPt().value_or({0, 0}); ++ const SkPoint last_point = path.getLastPt().value_or(SkPoint{0, 0}); + path.lineTo(arg(0), last_point.fY); + break; + } +@@ -245,7 +246,7 @@ + break; + + case V_LINE_TO: { +- const SkPoint last_point = path.getLastPt().value_or({0, 0}); ++ const SkPoint last_point = path.getLastPt().value_or(SkPoint{0, 0}); + path.lineTo(last_point.fX, arg(0)); + break; + } +@@ -273,7 +275,7 @@ + // details. + // Note that |x1| and |y1| will correspond to the sole control point if + // calculating a quadratic curve. +- const SkPoint last_point = path.getLastPt().value_or({0, 0}); ++ const SkPoint last_point = path.getLastPt().value_or(SkPoint{0, 0}); + SkScalar delta_x = 0; + SkScalar delta_y = 0; + if (IsCommandTypeCurve(previous_command_type)) { +--- chromium-144.0.7524.0/components/autofill/core/browser/payments/full_card_request.cc 2025/11/21 14:06:04 1.1 ++++ chromium-144.0.7524.0/components/autofill/core/browser/payments/full_card_request.cc 2025/11/21 14:06:36 +@@ -124,7 +124,7 @@ + request_->card = std::move(card); + request_->last_committed_primary_main_frame_origin = + last_committed_primary_main_frame_origin; +- request_->context_token = std::move(context_token).value_or({}); ++ request_->context_token = std::move(context_token).value_or(std::string{}); + request_->selected_challenge_option = std::move(selected_challenge_option); + + should_unmask_card_ = request_->card.masked() || diff --git a/chromium-144-rust-adler2.patch b/chromium-144-rust-adler2.patch new file mode 100644 index 0000000..1810672 --- /dev/null +++ b/chromium-144-rust-adler2.patch @@ -0,0 +1,11 @@ +--- chromium-144.0.7524.0/build/rust/std/BUILD.gn 2025/11/17 13:27:46 1.1 ++++ chromium-144.0.7524.0/build/rust/std/BUILD.gn 2025/11/17 13:27:58 +@@ -58,7 +58,7 @@ + if (rustc_nightly_capability) { + stdlib_files += [ "adler2" ] + } else { +- stdlib_files += [ "adler" ] ++ stdlib_files += [ "adler2" ] + } + } + diff --git a/chromium-144.0.7559.59-linux.tar.xz b/chromium-144.0.7559.59-linux.tar.xz new file mode 100644 index 0000000..da95b9e --- /dev/null +++ b/chromium-144.0.7559.59-linux.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d6de5bbf447b9d0f3c99843230ffebe5954cbcb38d9f8c2ddbbeb5fbcfa9179 +size 1287944964 diff --git a/chromium.changes b/chromium.changes index 384c3ee..de78f80 100644 --- a/chromium.changes +++ b/chromium.changes @@ -1,3 +1,44 @@ +------------------------------------------------------------------- +Wed Jan 14 11:31:48 CET 2026 - Ruediger Oertel + +- Chromium 144.0.7559.59 (boo#1256614) + * CVE-2026-0899: Out of bounds memory access in V8 + * CVE-2026-0900: Inappropriate implementation in V8 + * CVE-2026-0901: Inappropriate implementation in Blink + * CVE-2026-0902: Inappropriate implementation in V8 + * CVE-2026-0903: Insufficient validation of untrusted input in Downloads + * CVE-2026-0904: Incorrect security UI in Digital Credentials + * CVE-2026-0905: Insufficient policy enforcement in Network + * CVE-2026-0906: Incorrect security UI + * CVE-2026-0907: Incorrect security UI in Split View + * CVE-2026-0908: Use after free in ANGLE +- added patches: + * chromium-144-rust-adler2.patch + (with system rust-1.86, we still have adler2) + * chromium-144-revert_gfx_value_or.patch + (looks like third_party/skia is outdated) + * chromium-144-revert-libxml-2.13.patch + (conditionally applied if libxml < 2.13) +- modified patches: + * chromium-125-compiler.patch + * chromium-127-bindgen.patch + * chromium-127-rust-clanglib.patch + (rust nightly features are now guarded, drop hunk) + * gcc-enable-lto.patch + * ppc-fedora-0001-sandbox-linux-Update-syscall-helpers-lists-for-ppc64.patch + * ppc-fedora-0002-regenerate-xnn-buildgn.patch + (regenerated) +- dropped patches: + * ppc-fedora-fix-clang-selection.patch (upstream) + * chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch + * chromium-142-rust-revert_should_panic.patch +- keeplibs: + added third_party/perfetto/protos/third_party/pprof (pulled in) +- gn buildflags: + * drop duplicate "use_sysroot=false" + * add "chrome_pgo_phase=0" as in debian and fedora +- use noopenh264 where available + ------------------------------------------------------------------- Tue Jan 6 20:19:27 UTC 2026 - Andreas Stieger diff --git a/chromium.spec b/chromium.spec index 898bf1c..29da05f 100644 --- a/chromium.spec +++ b/chromium.spec @@ -59,6 +59,7 @@ %bcond_without qt6 %bcond_with system_ffmpeg %endif +%bcond_without noopenh264 %define ffmpeg_version 59 %bcond_with system_zstd %define node_ver 22 @@ -96,6 +97,11 @@ %else %bcond_with libxml2_2_12 %endif +%if %{pkg_vcmp libxml2-devel >= 2.13} +%bcond_without libxml2_2_13 +%else +%bcond_with libxml2_2_13 +%endif %if %{pkg_vcmp gtk4-devel >= 4.19} %bcond_without gtk4_4_19 %else @@ -118,7 +124,7 @@ %global official_build 1 Name: chromium%{n_suffix} -Version: 143.0.7499.192 +Version: 144.0.7559.59 Release: 0 Summary: Google's open source browser project License: BSD-3-Clause AND LGPL-2.1-or-later @@ -167,15 +173,14 @@ Patch371: chromium-133-bring_back_and_disable_allowlist.patch Patch373: chromium-134-type-mismatch-error.patch Patch375: chromium-131-fix-qt-ui.pach Patch377: chromium-139-deterministic.patch -Patch379: chromium-140-keep-__rust_no_alloc_shim_is_unstable.patch Patch380: chromium-141-use_libcxx_modules.patch Patch381: chromium-141-csss_style_sheet.patch Patch382: chromium-141-no_cxx_modules.patch -Patch383: chromium-142-rust-revert_should_panic.patch Patch385: chromium-142-rust_no_sanitize.patch Patch386: chromium-143-libpng-unbundle.patch Patch387: chromium-143-cookie_string_view.patch Patch389: chromium-143-revert_rust_is_multiple_of.patch +Patch390: chromium-144-revert_gfx_value_or.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 @@ -216,7 +221,6 @@ Patch436: ppc-fedora-skia-vsx-instructions.patch Patch437: ppc-fedora-0001-Implement-support-for-ppc64-on-Linux.patch Patch438: ppc-fedora-0001-Implement-support-for-PPC64-on-Linux.patch Patch439: ppc-fedora-0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch -Patch440: ppc-fedora-fix-clang-selection.patch Patch442: ppc-fedora-fix-rust-linking.patch Patch443: ppc-fedora-fix-breakpad-compile.patch Patch444: ppc-fedora-fix-partition-alloc-compile.patch @@ -239,8 +243,12 @@ Patch460: ppc-debian-0003-third_party-ffmpeg-Add-ppc64-generated-config.pa # conditionally applied patches # patch where libxml < 2.12 Patch1010: chromium-124-system-libxml.patch -# patch where rust <= 1.85 +# patch where libxml < 2.13 +Patch1011: chromium-144-revert-libxml-2.13.patch +# patch where rust = 1.85 Patch1030: chromium-134-revert-rust-adler2.patch +# patch where rust = 1.86 +Patch1031: chromium-144-rust-adler2.patch # gtk4 is too old Patch1040: gtk-414.patch Patch1041: gtk-414-2.patch @@ -410,6 +418,9 @@ BuildRequires: pkgconfig(freetype2) %if %{with system_zlib} BuildRequires: pkgconfig(zlib) %endif +%if %{with noopenh264} +BuildRequires: pkgconfig(openh264) +%endif %if %{with gtk4} BuildRequires: pkgconfig(atk-bridge-2.0) BuildRequires: pkgconfig(gtk4) @@ -499,10 +510,18 @@ WebDriver is an open source tool for automated testing of webapps across many br %patch -p1 -P 1010 %endif +%if %{without libxml2_2_13} +%patch -p1 -P 1011 +%endif + %if "%{?rust_version}" == "1.85" %patch -p1 -P 1030 %endif +%if "%{?rust_version}" == "1.86" +%patch -p1 -P 1031 +%endif + %if %{without gtk4_4_19} %patch -p1 -R -P 1041 %patch -p1 -R -P 1040 @@ -723,6 +742,7 @@ keeplibs=( third_party/pdfium/third_party/libtiff third_party/perfetto third_party/perfetto/protos/third_party/chromium + third_party/perfetto/protos/third_party/pprof third_party/perfetto/protos/third_party/simpleperf third_party/pffft third_party/ply @@ -989,6 +1009,9 @@ gn_system_libraries+=( zstd ) %if %{with system_zlib} gn_system_libraries+=( zlib ) %endif +%if %{with noopenh264} +gn_system_libraries+=( openh264 ) +%endif build/linux/unbundle/replace_gn_files.py --system-libraries ${gn_system_libraries[@]} @@ -1042,12 +1065,16 @@ myconf_gn+=" use_partition_alloc=true" myconf_gn+=" disable_fieldtrial_testing_config=true" myconf_gn+=" use_unofficial_version_number=false" myconf_gn+=" use_vaapi=true" -myconf_gn+=" use_sysroot=false" myconf_gn+=" treat_warnings_as_errors=false" myconf_gn+=" enable_widevine=true" myconf_gn+=" use_dbus=true" +%if %{with noopenh264} +myconf_gn+=" media_use_openh264=true" +myconf_gn+=" rtc_use_h264=true" +%else myconf_gn+=" media_use_openh264=false" myconf_gn+=" rtc_use_h264=false" +%endif myconf_gn+=" use_v8_context_snapshot=true" myconf_gn+=" v8_use_external_startup_data=true" myconf_gn+=" rust_sysroot_absolute=\"%{_prefix}\"" @@ -1115,6 +1142,7 @@ myconf_gn+=" google_api_key=\"${google_api_key}\"" if [ "$clang_version" -lt 20 ] ; then myconf_gn+=" clang_warning_suppression_file=\"\"" fi +myconf_gn+=" chrome_pgo_phase=0" # GN does not support passing cflags: # https://bugs.chromium.org/p/chromium/issues/detail?id=642016 diff --git a/gcc-enable-lto.patch b/gcc-enable-lto.patch index 90dec27..e9a48ff 100644 --- a/gcc-enable-lto.patch +++ b/gcc-enable-lto.patch @@ -1,7 +1,7 @@ -Index: chromium-120.0.6099.18/build/config/BUILDCONFIG.gn +Index: chromium-144.0.7524.0/build/config/BUILDCONFIG.gn =================================================================== ---- chromium-120.0.6099.18.orig/build/config/BUILDCONFIG.gn -+++ chromium-120.0.6099.18/build/config/BUILDCONFIG.gn +--- chromium-144.0.7524.0.orig/build/config/BUILDCONFIG.gn ++++ chromium-144.0.7524.0/build/config/BUILDCONFIG.gn @@ -135,6 +135,8 @@ declare_args() { # set "is_official_build" to true for any build intended to ship to end-users. is_official_build = false @@ -10,8 +10,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" && -@@ -389,6 +389,12 @@ + (current_cpu != "mips" && current_cpu != "mips64") +@@ -370,6 +372,12 @@ default_compiler_configs = [ "//build/config:feature_flags", ] @@ -24,11 +24,11 @@ Index: chromium-120.0.6099.18/build/config/BUILDCONFIG.gn if (is_win) { default_compiler_configs += [ "//build/config/win:default_cfg_compiler", -Index: chromium-120.0.6099.18/build/config/compiler/BUILD.gn +Index: chromium-144.0.7524.0/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 -@@ -2672,6 +2672,10 @@ +--- chromium-144.0.7524.0.orig/build/config/compiler/BUILD.gn ++++ chromium-144.0.7524.0/build/config/compiler/BUILD.gn +@@ -2750,6 +2750,10 @@ if (is_win) { } } @@ -39,11 +39,11 @@ Index: chromium-120.0.6099.18/build/config/compiler/BUILD.gn config("default_stack_frames") { if (!is_win) { if (enable_frame_pointers) { -Index: chromium-120.0.6099.18/sandbox/linux/BUILD.gn +Index: chromium-144.0.7524.0/sandbox/linux/BUILD.gn =================================================================== ---- chromium-120.0.6099.18.orig/sandbox/linux/BUILD.gn -+++ chromium-120.0.6099.18/sandbox/linux/BUILD.gn -@@ -253,6 +253,9 @@ component("seccomp_bpf") { +--- chromium-144.0.7524.0.orig/sandbox/linux/BUILD.gn ++++ chromium-144.0.7524.0/sandbox/linux/BUILD.gn +@@ -255,6 +255,9 @@ component("seccomp_bpf") { "//base", "//sandbox:sandbox_buildflags", ] @@ -53,11 +53,11 @@ Index: chromium-120.0.6099.18/sandbox/linux/BUILD.gn if (is_android) { sources += [ -Index: chromium-120.0.6099.18/base/BUILD.gn +Index: chromium-144.0.7524.0/base/BUILD.gn =================================================================== ---- chromium-120.0.6099.18.orig/base/BUILD.gn -+++ chromium-120.0.6099.18/base/BUILD.gn -@@ -3749,6 +3749,10 @@ +--- chromium-144.0.7524.0.orig/base/BUILD.gn ++++ chromium-144.0.7524.0/base/BUILD.gn +@@ -3748,6 +3748,10 @@ test("base_unittests") { sources += [ "immediate_crash_unittest.cc" ] } 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 08084f5..a729d97 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 @@ -58,7 +58,7 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete !defined(PTRACE_GET_THREAD_AREA) // Also include asm/ptrace-abi.h since ptrace.h in older libc (for instance // the one in Ubuntu 16.04 LTS) is missing PTRACE_GET_THREAD_AREA. -@@ -50,6 +50,11 @@ +@@ -52,6 +52,11 @@ #include #endif @@ -68,8 +68,8 @@ Index: chromium-136.0.7103.48/sandbox/linux/seccomp-bpf-helpers/syscall_paramete +#endif + #if BUILDFLAG(IS_ANDROID) + #include "base/android/background_thread_pool_field_trial.h" - #if !defined(F_DUPFD_CLOEXEC) @@ -107,6 +112,15 @@ #endif } @@ -631,5 +631,3 @@ Index: chromium-136.0.7103.48/sandbox/linux/services/syscall_wrappers.cc // CONFIG_CLONE_BACKWARDS defined. return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid); #endif ---- syscall_parameters_restrictions.cc 2025/10/01 15:32:29 1.1 -+++ syscall_parameters_restrictions.cc 2025/10/01 15:32:47 diff --git a/ppc-fedora-0002-regenerate-xnn-buildgn.patch b/ppc-fedora-0002-regenerate-xnn-buildgn.patch index 80c9a81..0512602 100644 --- a/ppc-fedora-0002-regenerate-xnn-buildgn.patch +++ b/ppc-fedora-0002-regenerate-xnn-buildgn.patch @@ -1,5 +1,5 @@ ---- chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn 2025/11/28 16:32:29 1.1 -+++ chromium-143.0.7499.40/third_party/xnnpack/BUILD.gn 2025/11/28 16:33:03 +--- chromium-144.0.7559.3/third_party/xnnpack/BUILD.gn 2025/12/08 17:03:13 1.1 ++++ chromium-144.0.7559.3/third_party/xnnpack/BUILD.gn 2025/12/08 17:03:46 @@ -35,10 +35,10 @@ } @@ -15,7 +15,7 @@ } config("xnnpack_private_config") { -@@ -48,1840 +48,2104 @@ +@@ -48,1844 +48,2108 @@ ] } @@ -1682,6 +1682,7 @@ + ":f32-vtanh_arm64", + ":f32-vunary_arm64", + ":operators_arm64", ++ ":pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2", + ":pf16-gemm_arch=armv8.2-a+sve+sve2", + ":pf32-gemm_arch=armv8.2-a+sve+sve2", + ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2", @@ -1704,6 +1705,7 @@ + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod", + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", + ":qd8-f32-qb4w-gemm_arm64", ++ ":qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod", + ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod", + ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", + ":qd8-f32-qc4w-gemm_arm64", @@ -2420,6 +2422,7 @@ + ":f32-vtanh_arm64_standalone", + ":f32-vunary_arm64_standalone", + ":operators_arm64_standalone", ++ ":pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2_standalone", + ":pf16-gemm_arch=armv8.2-a+sve+sve2_standalone", + ":pf32-gemm_arch=armv8.2-a+sve+sve2_standalone", + ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone", @@ -2442,6 +2445,7 @@ + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", + ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", + ":qd8-f32-qb4w-gemm_arm64_standalone", ++ ":qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod_standalone", + ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", + ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", + ":qd8-f32-qc4w-gemm_arm64_standalone", @@ -2645,6 +2649,7 @@ - ":f32-vtanh_arm64", - ":f32-vunary_arm64", - ":operators_arm64", +- ":pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2", - ":pf16-gemm_arch=armv8.2-a+sve+sve2", - ":pf32-gemm_arch=armv8.2-a+sve+sve2", - ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2", @@ -2667,6 +2672,7 @@ - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod", - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16", - ":qd8-f32-qb4w-gemm_arm64", +- ":qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod", - ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod", - ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16", - ":qd8-f32-qc4w-gemm_arm64", @@ -2990,6 +2996,7 @@ - ":f32-vtanh_arm64_standalone", - ":f32-vunary_arm64_standalone", - ":operators_arm64_standalone", +- ":pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2_standalone", - ":pf16-gemm_arch=armv8.2-a+sve+sve2_standalone", - ":pf32-gemm_arch=armv8.2-a+sve+sve2_standalone", - ":pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone", @@ -3012,6 +3019,7 @@ - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+dotprod_standalone", - ":qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", - ":qd8-f32-qb4w-gemm_arm64_standalone", +- ":qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod_standalone", - ":qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone", - ":qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone", - ":qd8-f32-qc4w-gemm_arm64_standalone", @@ -3928,7 +3936,7 @@ ] } } else { -@@ -1891,6 +2155,7 @@ +@@ -1895,6 +2159,7 @@ } } @@ -3936,7 +3944,7 @@ if (build_with_chromium) { source_set("xnnpack") { public = [ "src/include/xnnpack.h" ] -@@ -1901,37 +2166,37 @@ +@@ -1905,38 +2170,38 @@ configs += [ ":xnnpack_private_config" ] sources = [ @@ -3965,6 +3973,7 @@ - "src/src/sanitizers.c", - "src/src/subgraph.c", - "src/src/tensor.c", +- "src/src/xnnpack/fingerprint_check.c", + "src/src/cache.c", + "src/src/datatype.c", + "src/src/indirection.c", @@ -3984,7 +3993,8 @@ + "src/src/runtime.c", + "src/src/sanitizers.c", + "src/src/subgraph.c", -+ "src/src/tensor.c" ++ "src/src/tensor.c", ++ "src/src/xnnpack/fingerprint_check.c" ] deps = xnnpack_deps + [ @@ -4001,7 +4011,7 @@ public_configs = [ ":xnnpack_public_config" ] } -@@ -1948,37 +2213,37 @@ +@@ -1953,38 +2218,38 @@ configs += [ ":xnnpack_private_config" ] sources = [ @@ -4030,6 +4040,7 @@ - "src/src/sanitizers.c", - "src/src/subgraph.c", - "src/src/tensor.c", +- "src/src/xnnpack/fingerprint_check.c", + "src/src/cache.c", + "src/src/datatype.c", + "src/src/indirection.c", @@ -4049,7 +4060,8 @@ + "src/src/runtime.c", + "src/src/sanitizers.c", + "src/src/subgraph.c", -+ "src/src/tensor.c" ++ "src/src/tensor.c", ++ "src/src/xnnpack/fingerprint_check.c" ] deps = xnnpack_standalone_deps + [ @@ -4066,7 +4078,7 @@ public_configs = [ ":xnnpack_public_config" ] -@@ -1989,56289 +2254,65801 @@ +@@ -1995,56421 +2260,65945 @@ } if (current_cpu == "x64" || current_cpu == "x86") { @@ -5363,7 +5375,7 @@ - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-avx512skx-u64.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -5419,7 +5431,7 @@ - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-avx512skx-u64.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -5458,7 +5470,7 @@ - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-f16c-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -5492,7 +5504,7 @@ - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c", +- "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-f16c-u32.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -7208,7 +7220,7 @@ + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c" ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-avx512skx-u64.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -7280,7 +7292,7 @@ + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-avx512skx-u64.c" ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-avx512skx-u64.c" + ] - sources = [ @@ -7357,7 +7369,7 @@ + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c" ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-f16c-u32.c" + ] - if (build_with_chromium) { @@ -7449,7 +7461,7 @@ + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-f16c-u32.c" ++ "src/src/f16-f32acc-rdsum/gen/f16-f32acc-rdsum-7p7x-minmax-f16c-u32.c" + ] - sources = [ @@ -24422,6 +24434,7 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } +- } +if (build_with_chromium) { + source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ @@ -24452,9 +24465,36 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-qu8-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -24486,13 +24526,49 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx.c", +- "src/src/f32-vunary/gen/f32-vneg-avx.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-qu8-vcvt_sse2-no-sse3") { + cflags = [ @@ -24518,9 +24594,12 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("f32-vunary_avx512f") { +- cflags = [ "-mavx512f" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-qu8-vcvt_sse2-no-sse3_standalone") { @@ -24533,27 +24612,48 @@ + "src/include/xnnpack.h", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-sse2-u32.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", +- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_avx512f_standalone") { +- cflags = [ "-mavx512f" ] +if (build_with_chromium) { + source_set("f32-qu8-vcvt_x64") { + cflags = [ @@ -24565,7 +24665,32 @@ + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", + "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", +- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", +- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- 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" ] @@ -24579,9 +24704,34 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("f32-vunary_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-qu8-vcvt_x64_standalone") { @@ -24599,7 +24749,8 @@ + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -24611,10 +24762,43 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-sse2.c", +- "src/src/f32-vunary/gen/f32-vneg-sse2.c", +- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-raddstoreexpminusmax_avx512f") { + cflags = [ @@ -24639,9 +24823,12 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("f32-vunary_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-raddstoreexpminusmax_avx512f_standalone") { @@ -24653,27 +24840,48 @@ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx512f-rr2-p5-u64-acc2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vunary_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-raddstoreexpminusmax_f16c-fma-avx2") { + cflags = [ @@ -24686,7 +24894,32 @@ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx2-rr2-p5-u32-acc2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-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" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -24700,9 +24933,12 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("operators_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-raddstoreexpminusmax_f16c-fma-avx2_standalone") { @@ -24721,7 +24957,45 @@ + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -24730,13 +25004,18 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("operators_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { + cflags = [ @@ -24753,7 +25032,52 @@ + "src/include/xnnpack.h", + "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-avx256skx-rr2-p5-u32-acc2.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -24767,9 +25091,34 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-raddstoreexpminusmax_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { @@ -24799,15 +25148,49 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-raddstoreexpminusmax_sse2-no-sse3") { + cflags = [ @@ -24833,9 +25216,36 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-raddstoreexpminusmax_sse2-no-sse3_standalone") { @@ -24860,15 +25270,51 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-raddstoreexpminusmax_x64") { + cflags = [ @@ -24893,9 +25339,34 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-raddstoreexpminusmax_x64_standalone") { @@ -24919,15 +25390,49 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -24956,9 +25461,39 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdminmax_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -24986,15 +25521,54 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdminmax_avx512f") { + cflags = [ @@ -25020,9 +25594,40 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdminmax_avx512f_standalone") { @@ -25047,15 +25652,55 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdminmax_sse2-no-sse3") { + cflags = [ @@ -25082,9 +25727,36 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdminmax_sse2-no-sse3_standalone") { @@ -25110,15 +25782,51 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdminmax_x64") { + cflags = [ @@ -25144,9 +25852,34 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdminmax_x64_standalone") { @@ -25171,15 +25904,49 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdsum2_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -25207,9 +25974,39 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum2_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -25236,15 +26033,54 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdsum2_avx512f") { + cflags = [ @@ -25269,9 +26105,40 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum2_avx512f_standalone") { @@ -25295,15 +26162,55 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdsum2_sse2-no-sse3") { + cflags = [ @@ -25329,9 +26236,43 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum2_sse2-no-sse3_standalone") { @@ -25356,15 +26297,58 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdsum2_x64") { + cflags = [ @@ -25389,9 +26373,36 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum2_x64_standalone") { @@ -25415,15 +26426,51 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -25451,9 +26498,34 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -25480,15 +26552,49 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdsum_avx512f") { + cflags = [ @@ -25513,9 +26619,39 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum_avx512f_standalone") { @@ -25539,15 +26675,54 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdsum_sse2-no-sse3") { + cflags = [ @@ -25573,9 +26748,40 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum_sse2-no-sse3_standalone") { @@ -25600,15 +26806,55 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rdsum_x64") { + cflags = [ @@ -25633,9 +26879,43 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum_x64_standalone") { @@ -25659,15 +26939,58 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -25697,9 +27020,35 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rminmax_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -25728,15 +27077,50 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rminmax_avx512f") { + cflags = [ @@ -25763,9 +27147,34 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rminmax_avx512f_standalone") { @@ -25791,15 +27200,49 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rminmax_sse-no-sse2") { + cflags = [ @@ -25827,9 +27270,40 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rminmax_sse-no-sse2_standalone") { @@ -25856,15 +27330,55 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rminmax_x64") { + cflags = [ @@ -25891,9 +27405,41 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rminmax_x64_standalone") { @@ -25919,15 +27465,56 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rsum2_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -25955,9 +27542,33 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum2_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -25984,15 +27595,48 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rsum2_avx512f") { + cflags = [ @@ -26017,9 +27661,33 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum2_avx512f_standalone") { @@ -26043,15 +27711,48 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rsum2_sse2-no-sse3") { + cflags = [ @@ -26077,9 +27778,12 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qb4w-gemm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum2_sse2-no-sse3_standalone") { @@ -26092,27 +27796,47 @@ + "src/include/xnnpack.h", + "src/src/f32-rsum2/gen/f32-rsum2-sse2-u4.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qb4w-gemm_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-rsum2_x64") { + cflags = [ @@ -26123,7 +27847,31 @@ + "src/include/xnnpack.h", + "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- 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" ] @@ -26137,9 +27885,36 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum2_x64_standalone") { @@ -26163,15 +27938,51 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -26199,9 +28010,34 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -26228,15 +28064,49 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rsum_avx512f") { + cflags = [ @@ -26261,9 +28131,41 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum_avx512f_standalone") { @@ -26287,15 +28189,56 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rsum_sse2-no-sse3") { + cflags = [ @@ -26321,9 +28264,40 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum_sse2-no-sse3_standalone") { @@ -26348,15 +28322,55 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-rsum_x64") { + cflags = [ @@ -26381,9 +28395,41 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum_x64_standalone") { @@ -26407,15 +28453,56 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-spmm_sse-no-sse2") { + cflags = [ @@ -26441,9 +28528,43 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-spmm_sse-no-sse2_standalone") { @@ -26468,15 +28589,58 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-spmm_x64") { + cflags = [ @@ -26503,9 +28667,33 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-spmm_x64_standalone") { @@ -26531,15 +28719,48 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -26567,9 +28788,33 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vapproxgelu_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -26596,15 +28841,48 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vapproxgelu_avx512f") { + cflags = [ @@ -26629,9 +28907,12 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vapproxgelu_avx512f_standalone") { @@ -26643,27 +28924,47 @@ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-avx512f-rational-12-10-div.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vapproxgelu_f16c-fma-no-avx2") { + cflags = [ @@ -26676,7 +28977,31 @@ + "src/include/xnnpack.h", + "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-fma3-rational-12-10-div.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- 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" ] @@ -26690,9 +29015,36 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vapproxgelu_f16c-fma-no-avx2_standalone") { @@ -26718,15 +29070,51 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vapproxgelu_sse2-no-sse3") { + cflags = [ @@ -26753,9 +29141,34 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vapproxgelu_sse2-no-sse3_standalone") { @@ -26781,15 +29194,49 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vapproxgelu_x64") { + cflags = [ @@ -26814,9 +29261,41 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vapproxgelu_x64_standalone") { @@ -26840,15 +29319,56 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -26894,9 +29414,40 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vbinary_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -26941,15 +29492,55 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vbinary_avx512f") { + cflags = [ @@ -26992,9 +29583,43 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vbinary_avx512f_standalone") { @@ -27036,15 +29661,58 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vbinary_sse-no-sse2") { + cflags = [ @@ -27085,9 +29753,33 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vbinary_sse-no-sse2_standalone") { @@ -27127,15 +29819,48 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vbinary_sse2-no-sse3") { + cflags = [ @@ -27163,9 +29888,33 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vbinary_sse2-no-sse3_standalone") { @@ -27192,15 +29941,48 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vbinary_x64") { + cflags = [ @@ -27243,9 +30025,12 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-gemm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vbinary_x64_standalone") { @@ -27275,27 +30060,48 @@ + "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", + "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-gemm_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -27309,7 +30115,32 @@ + "src/include/xnnpack.h", + "src/src/f32-vclamp/gen/f32-vclamp-avx.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- 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" ] @@ -27323,9 +30154,36 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vclamp_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -27352,15 +30210,51 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vclamp_avx512f") { + cflags = [ @@ -27385,9 +30279,34 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vclamp_avx512f_standalone") { @@ -27411,15 +30330,49 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vclamp_sse2-no-sse3") { + cflags = [ @@ -27445,9 +30398,41 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vclamp_sse2-no-sse3_standalone") { @@ -27472,15 +30457,56 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vclamp_x64") { + cflags = [ @@ -27505,9 +30531,40 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vclamp_x64_standalone") { @@ -27531,15 +30588,55 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vcmul_avx512f") { + cflags = [ @@ -27564,9 +30661,43 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vcmul_avx512f_standalone") { @@ -27590,15 +30721,58 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { +- cflags = [ +- "-mamx-int8", +- "-mamx-tile", +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vcmul_f16c-fma-no-avx2") { + cflags = [ @@ -27625,9 +30799,33 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vcmul_f16c-fma-no-avx2_standalone") { @@ -27653,15 +30851,48 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vcmul_sse-no-sse2") { + cflags = [ @@ -27687,9 +30918,33 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vcmul_sse-no-sse2_standalone") { @@ -27714,15 +30969,48 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +if (build_with_chromium) { + source_set("f32-vcmul_x64") { + cflags = [ @@ -27747,9 +31035,12 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qd8-f32-qc8w-igemm_x64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vcmul_x64_standalone") { @@ -27761,27 +31052,48 @@ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc8w-igemm_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vcopysign_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -27797,7 +31109,32 @@ + "src/src/f32-vcopysign/gen/f32-vcopysignc-avx.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-avx.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", +- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -27811,9 +31148,35 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# 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") { @@ -27842,15 +31205,49 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vcopysign_avx512f") { + cflags = [ @@ -27910,10 +31307,35 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vcopysign_sse2-no-sse3") { + cflags = [ @@ -27972,13 +31394,46 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vcopysign_x64") { + cflags = [ @@ -28038,10 +31493,40 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vcos_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -28100,13 +31585,51 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vcos_avx512f") { + cflags = [ @@ -28162,10 +31685,34 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vcos_f16c-fma-no-avx2") { + cflags = [ @@ -28222,13 +31769,45 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vcos_sse2-no-sse3") { + cflags = [ @@ -28288,10 +31867,34 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vcos_x64") { + cflags = [ @@ -28342,15 +31945,47 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-velu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -28412,10 +32047,13 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-dwconv_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-velu_avx512f") { + cflags = [ @@ -28466,15 +32104,39 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-dwconv_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-velu_f16c-fma-avx2") { + cflags = [ @@ -28529,15 +32191,64 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-dwconv/gen/qs8-dwconv-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" ] +- } + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-f16-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-velu_sse2-no-sse3") { + cflags = [ @@ -28590,15 +32301,47 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f16-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-velu_x64") { + cflags = [ @@ -28654,10 +32397,35 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vexp_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -28716,13 +32484,46 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vexp_avx512f") { + cflags = [ @@ -28778,10 +32579,34 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vexp_f16c-fma-no-avx2") { + cflags = [ @@ -28829,7 +32654,8 @@ + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -28841,10 +32667,41 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vexp_sse2-no-sse3") { + cflags = [ @@ -28904,10 +32761,39 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vexp_x64") { + cflags = [ @@ -28960,13 +32846,50 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vgelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -29028,10 +32951,33 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vgelu_avx512f") { + cflags = [ @@ -29082,15 +33028,46 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vgelu_f16c-fma-no-avx2") { + cflags = [ @@ -29150,10 +33127,33 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vgelu_sse2-no-sse3") { + cflags = [ @@ -29210,13 +33210,44 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vgelu_x64") { + cflags = [ @@ -29272,10 +33303,13 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-f32-vcvt_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -29305,7 +33339,11 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vhswish_avx-no-avx2-no-f16c-no-fma_standalone") { @@ -29325,20 +33363,31 @@ + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} + +if (build_with_chromium) { @@ -29367,7 +33416,11 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-f32-vcvt_x64_standalone") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vhswish_avx512f_standalone") { @@ -29393,13 +33446,62 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vhswish_f16c-fma-no-avx2") { + cflags = [ @@ -29456,13 +33558,48 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vhswish_sse2-no-sse3") { + cflags = [ @@ -29522,10 +33659,34 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-packw_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vhswish_x64") { + cflags = [ @@ -29576,15 +33737,47 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vlog_avx512f") { + cflags = [ @@ -29640,10 +33833,42 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vlog_f16c-fma-avx2") { + cflags = [ @@ -29700,13 +33925,53 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vlog_f16c-fma-no-avx2") { + cflags = [ @@ -29766,10 +34031,13 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-packw_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vlog_sse2-no-sse3") { + cflags = [ @@ -29798,7 +34066,26 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vlog_sse2-no-sse3_standalone") { @@ -29826,13 +34113,18 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-packw_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vlog_x64") { + cflags = [ @@ -29885,13 +34177,64 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", +- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vlrelu_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -29950,13 +34293,47 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vlrelu_avx512f") { + cflags = [ @@ -30012,10 +34389,37 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vlrelu_sse-no-sse2") { + cflags = [ @@ -30043,7 +34447,8 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- public_configs = [ ":xnnpack_public_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vlrelu_sse-no-sse2_standalone") { @@ -30073,10 +34478,44 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vlrelu_sse4.1-no-sse4.2") { + cflags = [ @@ -30134,10 +34573,35 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vlrelu_x64") { + cflags = [ @@ -30176,7 +34640,8 @@ + "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" ] @@ -30193,10 +34658,42 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vmulcaddc_sse-no-sse2") { + cflags = [ @@ -30254,10 +34751,42 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vmulcaddc_x64") { + cflags = [ @@ -30308,15 +34837,55 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vrnd_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -30384,10 +34953,41 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vrnd_avx512f") { + cflags = [ @@ -30446,13 +35046,52 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set( +- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mavx512vnni", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vrnd_sse2-no-sse3") { + cflags = [ @@ -30516,10 +35155,34 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vrnd_sse4.1-no-sse4.2") { + cflags = [ @@ -30546,7 +35209,8 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + } +} @@ -30583,10 +35247,41 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1_standalone") { +- cflags = [ +- "-mno-sse4.1", +- "-mssse3", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vrnd_x64") { + cflags = [ @@ -30648,10 +35343,13 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc4w-gemm_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vrsqrt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -30698,27 +35396,47 @@ + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-rsqrt.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-avx-sqrt.c" + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", +- ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc4w-gemm_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vrsqrt_avx512f") { + cflags = [ @@ -30771,15 +35489,65 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vrsqrt_sse2-no-sse3") { + cflags = [ @@ -30834,15 +35602,50 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vrsqrt_x64") { + cflags = [ @@ -30900,10 +35703,36 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vsigmoid_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -30962,13 +35791,47 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { +- cflags = [ +- "-mavx2", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vsigmoid_avx512f") { + cflags = [ @@ -31024,10 +35887,41 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set( +- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vsigmoid_f16c-fma-avx2") { + cflags = [ @@ -31052,7 +35946,8 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + } +} @@ -31087,10 +35982,48 @@ + + if (!(is_android && 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_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { +- cflags = [ +- "-mavx512bw", +- "-mavx512cd", +- "-mavx512dq", +- "-mavx512f", +- "-mavx512vl", +- "-mf16c", +- "-mfma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vsigmoid_sse2-no-sse3") { + cflags = [ @@ -31148,10 +36081,35 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vsigmoid_sse4.1-no-sse4.2") { + cflags = [ @@ -31206,11 +36164,12 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} + +if (build_with_chromium) { @@ -31239,7 +36198,39 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { +- cflags = [ +- "-mno-sse3", +- "-msse2", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vsigmoid_x64_standalone") { @@ -31268,10 +36259,35 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vsin_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -31328,15 +36344,48 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { +- cflags = [ +- "-mno-sse4.2", +- "-msse4.1", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vsin_avx512f") { + cflags = [ @@ -31392,10 +36441,13 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-dwconv_x64") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vsin_f16c-fma-no-avx2") { + cflags = [ @@ -31450,15 +36502,41 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + public_configs = [ ":xnnpack_public_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-dwconv_x64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vsin_sse2-no-sse3") { + cflags = [ @@ -31513,15 +36591,68 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", +- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("f32-vsin_x64") { + cflags = [ @@ -31537,7 +36668,8 @@ + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ + +- public_configs = [ ":xnnpack_public_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -31577,10 +36709,43 @@ + + if (!(is_android && 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_avx-no-avx2-no-f16c-no-fma_standalone") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +if (build_with_chromium) { + source_set("f32-vsqrt_avx-no-avx2-no-f16c-no-fma") { + cflags = [ @@ -31644,10 +36809,37 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] -+ } -+ } + } + } +} -+ + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-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", +- ] +if (build_with_chromium) { + source_set("f32-vsqrt_avx512f") { + cflags = [ @@ -32415,6 +37607,8 @@ + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -32463,6 +37657,8 @@ + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -54240,8 +59436,8 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} + +if (build_with_chromium) { @@ -54287,34 +59483,7 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} - -- if (build_with_chromium) { -- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx.c", -- "src/src/f32-vunary/gen/f32-vneg-avx.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-dwconv_arm64_standalone") { @@ -54357,49 +59526,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vunary_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx.c", -- "src/src/f32-vunary/gen/f32-vneg-avx.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-f16-vcvt_arm64") { + cflags = [ @@ -54426,12 +59559,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("f32-vunary_avx512f") { -- cflags = [ "-mavx512f" ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-f16-vcvt_arm64_standalone") { @@ -54445,48 +59575,27 @@ + "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" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", -- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vunary_avx512f_standalone") { -- cflags = [ "-mavx512f" ] ++ +if (build_with_chromium) { + source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -54494,32 +59603,7 @@ + ] + + asmflags = cflags - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-avx512f.c", -- "src/src/f32-vunary/gen/f32-vneg-avx512f.c", -- "src/src/f32-vunary/gen/f32-vsqr-avx512f.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + sources = [ + "src/include/xnnpack.h", + "src/src/f32-gemm/gen/f32-gemm-1x8-minmax-asm-aarch64-neonfma-cortex-a53-prfm.S", @@ -54558,34 +59642,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("f32-vunary_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-sse2.c", -- "src/src/f32-vunary/gen/f32-vneg-sse2.c", -- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { @@ -54619,8 +59678,7 @@ + "src/src/f32-gemm/gen/f32-gemm-7x8-minmax-asm-aarch64-neonfma-ld128-2.S", + "src/src/f32-gemm/gen/f32-gemm-8x8-minmax-asm-aarch64-neonfma-ld128-2.S" + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -54637,43 +59695,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vunary_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-sse2.c", -- "src/src/f32-vunary/gen/f32-vneg-sse2.c", -- "src/src/f32-vunary/gen/f32-vsqr-sse2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-gemm_arm64") { + cflags = [ @@ -54716,12 +59741,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("f32-vunary_x64") { -- cflags = [] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-gemm_arm64_standalone") { @@ -54751,48 +59773,27 @@ + "src/src/f32-gemm/gen/f32-gemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-gemm/gen/f32-gemm-6x8s4-minmax-neonfma.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vunary_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("f32-ibilinear-chw_arm64") { + cflags = [ @@ -54805,32 +59806,7 @@ + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-neonfma-p8.c", + "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/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" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -54844,12 +59820,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("operators_x64") { -- cflags = [] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-ibilinear-chw_arm64_standalone") { @@ -54875,56 +59848,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("operators_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("f32-ibilinear_arm64") { + cflags = [ @@ -54937,50 +59869,7 @@ + "src/src/f32-ibilinear/gen/f32-ibilinear-neonfma-u8.c", + "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/operators/argmax-pooling-nhwc.c", -- "src/src/operators/average-pooling-nhwc.c", -- "src/src/operators/batch-matrix-multiply-nc.c", -- "src/src/operators/binary-elementwise-nd.c", -- "src/src/operators/constant-pad-nd.c", -- "src/src/operators/convolution-nchw.c", -- "src/src/operators/convolution-nhwc.c", -- "src/src/operators/deconvolution-nhwc.c", -- "src/src/operators/dynamic-fully-connected-nc.c", -- "src/src/operators/fully-connected-nc.c", -- "src/src/operators/max-pooling-nhwc.c", -- "src/src/operators/pack-lh.c", -- "src/src/operators/reduce-nd.c", -- "src/src/operators/resize-bilinear-nchw.c", -- "src/src/operators/resize-bilinear-nhwc.c", -- "src/src/operators/rope-nthc.c", -- "src/src/operators/slice-nd.c", -- "src/src/operators/softmax-nc.c", -- "src/src/operators/transpose-nd.c", -- "src/src/operators/unary-elementwise-nc.c", -- "src/src/operators/unpooling-nhwc.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//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" ] @@ -54994,34 +59883,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-ibilinear_arm64_standalone") { @@ -55049,47 +59913,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qb4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -55133,36 +59963,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { @@ -55207,49 +60010,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-igemm_arm64") { + cflags = [ @@ -55292,34 +60059,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-igemm_arm64_standalone") { @@ -55349,8 +60091,7 @@ + "src/src/f32-igemm/gen/f32-igemm-6x8-minmax-aarch64-neonfma-lane-ld128.c", + "src/src/f32-igemm/gen/f32-igemm-6x8s4-minmax-neonfma.c" + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -55367,43 +60108,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-maxpool_arm64") { + cflags = [ @@ -55429,39 +60137,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-maxpool_arm64_standalone") { @@ -55488,52 +60166,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-qc4w-gemm_arm64") { + cflags = [ @@ -55564,40 +60203,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-qc4w-gemm_arm64_standalone") { @@ -55629,53 +60237,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f16-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -55704,36 +60272,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { @@ -55763,49 +60304,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-qc8w-gemm_arm64") { + cflags = [ @@ -55835,34 +60340,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-qc8w-gemm_arm64_standalone") { @@ -55893,47 +60373,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-qs8-vcvt_arm64") { + cflags = [ @@ -55961,39 +60407,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-qs8-vcvt_arm64_standalone") { @@ -56022,52 +60438,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-5x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-qu8-vcvt_arm64") { + cflags = [ @@ -56095,40 +60472,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-qu8-vcvt_arm64_standalone") { @@ -56157,53 +60503,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-raddstoreexpminusmax_arm64") { + cflags = [ @@ -56229,43 +60535,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-raddstoreexpminusmax_arm64_standalone") { @@ -56292,56 +60564,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f16-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-gemm/gen/qd8-f16-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-rdminmax_arm64") { + cflags = [ @@ -56369,36 +60598,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdminmax_arm64_standalone") { @@ -56427,49 +60629,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-rdsum2_arm64") { + cflags = [ @@ -56495,34 +60661,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum2_arm64_standalone") { @@ -56549,47 +60690,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qc8w-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-rdsum_arm64") { + cflags = [ @@ -56615,39 +60722,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rdsum_arm64_standalone") { @@ -56674,52 +60751,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-5x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-rminmax_arm64") { + cflags = [ @@ -56749,40 +60787,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rminmax_arm64_standalone") { @@ -56813,53 +60820,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x8c8-minmax-avx256vnni.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-8x8c8-minmax-avx256vnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-rsum2_arm64") { + cflags = [ @@ -56885,43 +60852,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum2_arm64_standalone") { @@ -56948,56 +60881,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f16-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f16-qc8w-igemm/gen/qd8-f16-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-rsum_arm64") { + cflags = [ @@ -57023,35 +60913,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-rsum_arm64_standalone") { @@ -57078,48 +60942,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qb4w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-avx-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-spmm_arm64") { + cflags = [ @@ -57150,34 +60979,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-spmm_arm64_standalone") { @@ -57209,47 +61013,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qb4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vapproxgelu_arm64") { + cflags = [ @@ -57275,40 +61045,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vapproxgelu_arm64_standalone") { @@ -57335,53 +61074,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vbinary_arm64") { + cflags = [ @@ -57443,41 +61142,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vbinary_arm64_standalone") { @@ -57540,54 +61207,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qb4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vclamp_arm64") { + cflags = [ @@ -57613,33 +61239,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vclamp_arm64_standalone") { @@ -57666,46 +61268,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qb4w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vcmul_arm64") { + cflags = [ @@ -57731,33 +61300,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vcmul_arm64_standalone") { @@ -57784,46 +61329,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qb4w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4c8-minmax-sse41-ld128.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-3x4c8-minmax-sse41-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vcopysign_arm64") { + cflags = [ @@ -57853,12 +61365,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qb4w-gemm_x64") { -- cflags = [] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vcopysign_arm64_standalone") { @@ -57875,47 +61384,27 @@ + "src/src/f32-vcopysign/gen/f32-vrcopysignc-neon.c", + "src/src/f32-vcopysign/gen/f32-vrcopysignc-scalar.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qb4w-gemm_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("f32-vcos_arm64") { + cflags = [ @@ -57927,31 +61416,7 @@ + "src/src/f32-vcos/gen/f32-vcos-neon-rational-5-4-div.c", + "src/src/f32-vcos/gen/f32-vcos-scalar-rational-5-4-div.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -57965,36 +61430,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vcos_arm64_standalone") { @@ -58021,49 +61459,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-velu_arm64") { + cflags = [ @@ -58091,34 +61493,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-velu_arm64_standalone") { @@ -58147,47 +61524,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vexp_arm64") { + cflags = [ @@ -58213,41 +61556,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vexp_arm64_standalone") { @@ -58274,54 +61585,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x8c8-minmax-avx256skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512skx-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x8c8-minmax-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vgelu_arm64") { + cflags = [ @@ -58347,40 +61617,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vgelu_arm64_standalone") { @@ -58407,53 +61646,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-8x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vhswish_arm64") { + cflags = [ @@ -58479,41 +61678,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vhswish_arm64_standalone") { @@ -58540,54 +61707,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-14x16c8-minmax-avx512vnnigfni-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-avx512vnnigfni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vlog_arm64") { + cflags = [ @@ -58613,43 +61739,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vlog_arm64_standalone") { @@ -58676,56 +61768,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vlrelu_arm64") { + cflags = [ @@ -58751,33 +61800,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vlrelu_arm64_standalone") { @@ -58804,46 +61829,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-sse2-ld128.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4c8-minmax-sse2-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vmulcaddc_arm64") { + cflags = [ @@ -58870,33 +61862,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vmulcaddc_arm64_standalone") { @@ -58924,46 +61892,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vrnd_arm64") { + cflags = [ @@ -58999,12 +61934,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_x64") { -- cflags = [] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vrnd_arm64_standalone") { @@ -59027,47 +61959,27 @@ + "src/src/f32-vrnd/gen/f32-vrndz-neonv8-u8.c", + "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("f32-vrsqrt_arm64") { + cflags = [ @@ -59080,31 +61992,7 @@ + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", + "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -59118,36 +62006,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vrsqrt_arm64_standalone") { @@ -59175,49 +62036,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vsigmoid_arm64") { + cflags = [ @@ -59244,34 +62069,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vsigmoid_arm64_standalone") { @@ -59299,47 +62099,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vsin_arm64") { + cflags = [ @@ -59365,41 +62131,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vsin_arm64_standalone") { @@ -59426,54 +62160,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-8x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vsqrt_arm64") { + cflags = [ @@ -59499,40 +62192,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vsqrt_arm64_standalone") { @@ -59559,53 +62221,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vtanh_arm64") { + cflags = [ @@ -59631,43 +62253,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vtanh_arm64_standalone") { @@ -59694,56 +62282,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc8w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("f32-vunary_arm64") { + cflags = [ @@ -59773,33 +62318,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vunary_arm64_standalone") { @@ -59830,46 +62351,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-gemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("operators_arm64") { + cflags = [ @@ -59887,6 +62375,8 @@ + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -59914,33 +62404,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("operators_arm64_standalone") { @@ -59959,6 +62425,8 @@ + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -59986,46 +62454,72 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-gemm_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4c8-minmax-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ ++if (build_with_chromium) { ++ source_set("pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf16-f16-f16-igemm/pf16-f16-f16-igemm-32x32c2-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+sve+sve2" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/pf16-f16-f16-igemm/pf16-f16-f16-igemm-32x32c2-minmax-neonsme2.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ +if (build_with_chromium) { + source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { + cflags = [ @@ -60051,12 +62545,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-gemm_x64") { -- cflags = [] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { @@ -60069,48 +62560,27 @@ + "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", + "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-gemm_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { + cflags = [ @@ -60124,32 +62594,7 @@ + "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", + "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- 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" ] @@ -60163,36 +62608,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { @@ -60221,49 +62639,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { + cflags = [ @@ -60288,34 +62670,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { @@ -60341,47 +62698,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-igemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx2.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x8c8-minmax-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { + cflags = [ @@ -60407,41 +62730,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { @@ -60468,54 +62759,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x8c8-minmax-avx256skx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x16c8-minmax-avx512skx-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-8x8c8-minmax-avx256skx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("qb4-packw_arch=armv8.2-a+dotprod") { + cflags = [ @@ -60541,40 +62791,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { @@ -60601,53 +62820,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-10x16c8-minmax-avx512vnni-prfm.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x16c8-minmax-avx512vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ @@ -60673,43 +62852,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { @@ -60736,56 +62881,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qd8-f32-qc8w-igemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-amx-tile-amx-int8_standalone") { -- cflags = [ -- "-mamx-int8", -- "-mamx-tile", -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-16x64c4-minmax-avx512amx.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x64c4-minmax-avx512amx.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } ++ +if (build_with_chromium) { + source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { + cflags = [ @@ -60811,33 +62913,9 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { @@ -60864,45 +62942,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-igemm_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse2-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse2-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -60960,34 +63006,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-igemm_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ @@ -61015,8 +63037,7 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} - -- public_configs = [ ":xnnpack_public_config" ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { @@ -61046,41 +63067,10 @@ + + if (!(is_android && 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_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4c8-minmax-sse41-ld64.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4c8-minmax-sse41-ld64.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+fp16") { + cflags = [ @@ -61138,13 +63128,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qd8-f32-qc8w-igemm_x64") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qd8-f16-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -61185,48 +63172,27 @@ + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-1x16c8-minmax-neoni8mm.c", + "src/src/qd8-f16-qc4w-gemm/gen/qd8-f16-qc4w-gemm-4x16c8-minmax-neoni8mm.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/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" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc8w-igemm_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ @@ -61283,65 +63249,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -- "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-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" ] -- } ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16") { + cflags = [ @@ -61394,49 +63310,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -61498,35 +63380,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f16-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -61567,8 +63424,7 @@ + "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" ] @@ -61585,42 +63441,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+dotprod+fp16") { + cflags = [ @@ -61682,40 +63506,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16") { + cflags = [ @@ -61768,53 +63562,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -61876,34 +63632,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-dwconv_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse2-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse2-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f16-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -61958,12 +63690,11 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} + +if (build_with_chromium) { @@ -61993,38 +63724,7 @@ + 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" ] -- } ++ +# 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") { @@ -62054,34 +63754,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -62134,47 +63810,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p8c-minmax-fp32-sse41-mul16-add16.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p8c-minmax-fp32-sse41-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f32-qb4w-gemm_arm64") { + cflags = [ @@ -62236,13 +63880,71 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-dwconv_x64") { -- cflags = [] ++ ++if (build_with_chromium) { ++ source_set("qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-4x16c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} ++ ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod_standalone") { ++ cflags = [ ++ "-march=armv8.2-a+dotprod" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-1x16c4-minmax-neondot.c", ++ "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-4x16c4-minmax-neondot.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] ++ } ++ } ++} ++ +if (build_with_chromium) { + source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ @@ -62295,39 +63997,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-dwconv_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -62380,64 +64058,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-dwconv/gen/qs8-dwconv-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" ] -- } ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-f16-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f32-qc4w-gemm_arm64") { + cflags = [ @@ -62456,8 +64085,7 @@ + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -62500,41 +64128,10 @@ + + if (!(is_android && 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-f16-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f16-vcvt/gen/qs8-f16-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ @@ -62596,35 +64193,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -62683,46 +64255,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -62780,34 +64319,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f32-qc8w-gemm_arm64") { + cflags = [ @@ -62870,47 +64385,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx2-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+dotprod") { + cflags = [ @@ -62972,39 +64455,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -63030,8 +64484,7 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + } +} @@ -63067,46 +64520,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-f32-vcvt_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-avx512skx-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -63164,33 +64581,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qd8-f32-qc8w-igemm_arm64") { + cflags = [ @@ -63257,46 +64651,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse2-u32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ @@ -63356,33 +64719,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qp8-f32-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -63435,44 +64775,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-sse41-u16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ @@ -63532,13 +64841,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-f32-vcvt_x64") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -63565,11 +64871,7 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { @@ -63586,37 +64888,22 @@ + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-f32-vcvt_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+sve+sve2") { + cflags = [ @@ -63671,62 +64958,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ @@ -63783,48 +65021,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-packw_avx2-avxvnni-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avxvnni.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -63880,34 +65083,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-packw_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+sve+sve2") { + cflags = [ @@ -63960,47 +65139,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-packw_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx2-madd.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-dwconv_arm64") { + cflags = [ @@ -64068,42 +65215,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-f16-vcvt_arch=armv8.2-a+fp16") { + cflags = [ @@ -64156,53 +65271,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-packw_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x64c4-gemm-goi-avx256vnni-prfm.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-goi-avx256vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-f32-vcvt_arm64") { + cflags = [ @@ -64260,13 +65335,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-packw_x64") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qs8-packw_arm64") { + cflags = [ @@ -64296,26 +65368,7 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -- "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qs8-packw_arm64_standalone") { @@ -64344,18 +65397,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-packw_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -64381,32 +65429,7 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -- "src/src/qs8-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" ] -- } ++ + public_configs = [ ":xnnpack_public_config" ] + } +} @@ -64442,36 +65465,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-qc4w-gemm_arm64") { + cflags = [ @@ -64512,8 +65509,7 @@ + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", + "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -64530,43 +65526,10 @@ + + if (!(is_android && 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_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-avx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-avx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-qc8w-dwconv_arm64") { + cflags = [ @@ -64648,37 +65611,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-qc8w-gemm_arch=armv8.2-a+dotprod") { + cflags = [ @@ -64735,50 +65671,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_avx2-avxvnni-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avxvnni-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x8c8-minmax-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -64856,35 +65757,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-qc8w-gemm_arch=armv8.2-a+i8mm+fp16") { + cflags = [ @@ -64939,46 +65815,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-avx2-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-avx2-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-qc8w-gemm_arm64") { + cflags = [ @@ -65046,42 +65889,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod") { + cflags = [ @@ -65100,8 +65911,7 @@ + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -65144,49 +65954,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x16c8-minmax-fp32-avx512skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x16c8-minmax-fp32-avx512skx-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256skx-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { + cflags = [ @@ -65264,8 +66035,8 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} + +if (build_with_chromium) { @@ -65295,38 +66066,7 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} - -- if (build_with_chromium) { -- source_set( -- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# 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") { @@ -65353,52 +66093,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-qc4w-gemm_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mavx512vnni", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x8c8-minmax-fp32-avx256vnni-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-7x8c8-minmax-fp32-avx256vnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-qc8w-igemm_arm64") { + cflags = [ @@ -65466,34 +66167,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-qu8-packw_arm64") { + cflags = [ @@ -65544,47 +66221,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_ssse3-no-sse4.1_standalone") { -- cflags = [ -- "-mno-sse4.1", -- "-mssse3", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4c8-minmax-ssse3-madd-prfm.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-5x4c8-minmax-ssse3-madd-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-rdsum_arm64") { + cflags = [ @@ -65642,13 +66287,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-qc4w-gemm_x64") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qs8-rsum_arch=armv8.2-a+dotprod") { + cflags = [ @@ -65687,47 +66329,27 @@ + "src/include/xnnpack.h", + "src/src/qs8-rsum/gen/qs8-rsum-neondot-u32-acc2.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc4w-gemm_x64_standalone") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qs8-rsum_arm64") { + cflags = [ @@ -65751,30 +66373,7 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/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" ] + } +} @@ -65808,37 +66407,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-vadd_arm64") { + cflags = [ @@ -65897,48 +66469,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-dwconv_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx-mul16-add16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx-mul16-add16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-vaddc_arm64") { + cflags = [ @@ -66000,8 +66537,8 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} + +if (build_with_chromium) { @@ -66031,33 +66568,7 @@ + public_configs = [ ":xnnpack_public_config" ] + } +} - -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("qs8-vcvt_arm64_standalone") { @@ -66084,47 +66595,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-dwconv_f16c-fma-avx2_standalone") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p16c-minmax-fp32-avx2-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p16c-minmax-fp32-avx2-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-vlrelu_arm64") { + cflags = [ @@ -66182,41 +66659,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set( -- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-vmul_arm64") { + cflags = [ @@ -66269,54 +66715,15 @@ + "//third_party/fxdiv", + "//third_party/pthreadpool:pthreadpool_standalone", + ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + public_configs = [ ":xnnpack_public_config" ] + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set( -- "qs8-qc8w-dwconv_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl_standalone") { -- cflags = [ -- "-mavx512bw", -- "-mavx512cd", -- "-mavx512dq", -- "-mavx512f", -- "-mavx512vl", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p32c-minmax-fp32-avx512skx-mul32.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p32c-minmax-fp32-avx512skx-mul32.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-vmulc_arm64") { + cflags = [ @@ -66374,35 +66781,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_sse2-no-sse3") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-vprelu_arm64") { + cflags = [ @@ -66455,46 +66837,13 @@ + ] + + public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-dwconv_sse2-no-sse3_standalone") { -- cflags = [ -- "-mno-sse3", -- "-msse2", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse2-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse2-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qs8-vpreluc_arm64") { + cflags = [ @@ -66550,35 +66899,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ +if (build_with_chromium) { + source_set("qs8-vrpreluc_arm64") { + cflags = [ @@ -66622,8 +66946,7 @@ + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -66635,42 +66958,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-dwconv_sse4.1-no-sse4.2_standalone") { -- cflags = [ -- "-mno-sse4.2", -- "-msse4.1", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p8c-minmax-fp32-sse41-mul16.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p8c-minmax-fp32-sse41-mul16.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } ++ +if (build_with_chromium) { + source_set("qu8-dwconv_arm64") { + cflags = [ @@ -66736,13 +67027,10 @@ + + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] - } - } ++ } ++ } +} - -- if (build_with_chromium) { -- source_set("qs8-qc8w-dwconv_x64") { -- cflags = [] ++ +if (build_with_chromium) { + source_set("qu8-f32-vcvt_arm64") { + cflags = [ @@ -66783,36 +67071,12 @@ + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-neon-u32.c", + "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } ++ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -66820,169 +67084,10 @@ + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-dwconv_x64_standalone") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -- "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+if (build_with_chromium) { -+ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - - public_configs = [ ":xnnpack_public_config" ] - } - } -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" -+ ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-gemm_avx-no-avx2-no-f16c-no-fma_standalone") { -- cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4c8-minmax-fp32-avx-ld128.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-2x4c8-minmax-fp32-avx-ld128.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (build_with_chromium) { -- source_set("qs8-qc8w-gemm_avx2-avxvnni-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x8c8-minmax-fp32-avxvnni-prfm.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-5x8c8-minmax-fp32-avxvnni-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } + public_configs = [ ":xnnpack_public_config" ] - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67018,16 +67123,11 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - if (build_with_chromium) { - source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni") { @@ -67056,6 +67156,17 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++if (build_with_chromium) { ++ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", @@ -67064,14 +67175,6 @@ + "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-gemm_avx2-avxvnniint8-f16c-fma-gfni_standalone") { @@ -67108,12 +67211,10 @@ - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { - source_set("qs8-qc8w-gemm_f16c-fma-avx2") { @@ -67140,12 +67241,16 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -67183,22 +67288,14 @@ - } - } - } -+if (build_with_chromium) { -+ source_set("qu8-gemm_arm64") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { + cflags = [ -+ ++ "-march=armv8.2-a+fp16+dotprod" + ] + -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" -+ ] ++ asmflags = cflags - if (build_with_chromium) { - source_set( @@ -67232,20 +67329,21 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] - public_configs = [ ":xnnpack_public_config" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67287,9 +67385,13 @@ - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - if (build_with_chromium) { - source_set( @@ -67322,27 +67424,14 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -- ++ public_configs = [ ":xnnpack_public_config" ] + - public_configs = [ ":xnnpack_public_config" ] -- } -- } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_arm64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67384,10 +67473,22 @@ - } - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++if (build_with_chromium) { ++ source_set("qu8-gemm_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" ++ ] - if (build_with_chromium) { - source_set( @@ -67423,17 +67524,20 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67476,9 +67580,8 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} @@ -67506,23 +67609,26 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { -+ cflags = [ -+ "-march=armv8.2-a+fp16+dotprod" -+ ] -+ -+ asmflags = cflags - +- - public_configs = [ ":xnnpack_public_config" ] - } - } ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-gemm_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", -+ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x16-minmax-rndnu16-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-1x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x8-minmax-rndnu-neon-mlal-lane.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-4x16-minmax-rndnu-neon-mlal-lane.c" + ] - # This is a target that cannot depend on //base. @@ -67591,14 +67697,13 @@ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] - public_configs = [ ":xnnpack_public_config" ] - } +- } + public_configs = [ ":xnnpack_public_config" ] - } -+} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -67631,6 +67736,92 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qc8w-gemm_x64") { +- cflags = [] ++if (build_with_chromium) { ++ source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod") { ++ cflags = [ ++ "-march=armv8.2-a+fp16+dotprod" ++ ] ++ ++ asmflags = cflags + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75-prfm.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a75.S", ++ "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-gemm_x64_standalone") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } - } - } +# This is a target that cannot depend on //base. @@ -67643,8 +67834,31 @@ + asmflags = cflags - if (build_with_chromium) { -- source_set("qs8-qc8w-gemm_x64") { -- cflags = [] +- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { +- cflags = [ +- "-mavx", +- "-mno-avx2", +- "-mno-f16c", +- "-mno-fma", +- ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4c8-minmax-fp32-avx-ld128.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-2x4c8-minmax-fp32-avx-ld128.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + sources = [ + "src/include/xnnpack.h", + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S", @@ -67653,20 +67867,49 @@ + "src/src/qu8-igemm/gen/qu8-igemm-4x16-minmax-rndnu16-asm-aarch64-neon-mlal-lane-cortex-a53-prfm.S" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qc8w-igemm_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" ] +- } +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -67674,6 +67917,27 @@ + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- if (build_with_chromium) { +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] +- +- 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", @@ -67691,13 +67955,19 @@ - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-gemm_x64_standalone") { -- cflags = [] +- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { +- cflags = [ +- "-mavx2", +- "-mavxvnni", +- "-mf16c", +- "-mfma", +- "-mgfni", +- ] - - 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-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" ] @@ -67737,18 +68007,19 @@ + ] - if (build_with_chromium) { -- source_set("qs8-qc8w-igemm_avx-no-avx2-no-f16c-no-fma") { +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni") { - cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- "-mgfni", - ] - - 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-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" ] @@ -67779,18 +68050,19 @@ - # 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") { +- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni_standalone") { - cflags = [ -- "-mavx", -- "-mno-avx2", -- "-mno-f16c", -- "-mno-fma", +- "-mavx2", +- "-mavxvnniint8", +- "-mf16c", +- "-mfma", +- "-mgfni", - ] - - 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-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" ] @@ -67816,19 +68088,17 @@ +} - if (build_with_chromium) { -- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni") { +- source_set("qs8-qc8w-igemm_f16c-fma-avx2") { - cflags = [ - "-mavx2", -- "-mavxvnni", - "-mf16c", - "-mfma", -- "-mgfni", - ] - - 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-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" ] @@ -67868,174 +68138,6 @@ + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qc8w-igemm_avx2-avxvnni-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnni", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- 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" ] -- } -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- if (build_with_chromium) { -- source_set("qs8-qc8w-igemm_avx2-avxvnniint8-f16c-fma-gfni") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && 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_avx2-avxvnniint8-f16c-fma-gfni_standalone") { -- cflags = [ -- "-mavx2", -- "-mavxvnniint8", -- "-mf16c", -- "-mfma", -- "-mgfni", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avxvnniint8-prfm.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-5x8c8-minmax-fp32-avxvnniint8-prfm.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+if (build_with_chromium) { -+ source_set("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" -+ ] - -- if (build_with_chromium) { -- source_set("qs8-qc8w-igemm_f16c-fma-avx2") { -- cflags = [ -- "-mavx2", -- "-mf16c", -- "-mfma", -- ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x8c8-minmax-fp32-avx2.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x8c8-minmax-fp32-avx2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-igemm_f16c-fma-avx2_standalone") { @@ -68069,9 +68171,13 @@ - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - if (build_with_chromium) { - source_set( @@ -68105,27 +68211,14 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+# This is a target that cannot depend on //base. -+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" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -68168,11 +68261,17 @@ - } - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++if (build_with_chromium) { ++ source_set("qu8-rdsum_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - if (build_with_chromium) { @@ -68206,14 +68305,20 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -68254,18 +68359,9 @@ - assert_no_deps = [ "//base" ] - } - } -- } -+if (build_with_chromium) { -+ source_set("qu8-rsum_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" -+ ] ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - if (build_with_chromium) { - source_set( @@ -68301,20 +68397,27 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rdsum_arm64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u16.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-7p7x-neon-u32.c", ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ ] - public_configs = [ ":xnnpack_public_config" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -68358,9 +68461,13 @@ - assert_no_deps = [ "//base" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] - if (build_with_chromium) { - source_set("qs8-qc8w-igemm_sse2-no-sse3") { @@ -68386,22 +68493,14 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -- ++ public_configs = [ ":xnnpack_public_config" ] + - public_configs = [ ":xnnpack_public_config" ] -- } -- } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_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" -+ ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -68436,10 +68535,17 @@ - } - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++if (build_with_chromium) { ++ source_set("qu8-rsum_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ ] - if (build_with_chromium) { - source_set("qs8-qc8w-igemm_sse4.1-no-sse4.2") { @@ -68465,17 +68571,20 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - public_configs = [ ":xnnpack_public_config" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -68508,43 +68617,47 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } +- } ++ public_configs = [ ":xnnpack_public_config" ] } +} - if (build_with_chromium) { - source_set("qs8-qc8w-igemm_x64") { - cflags = [] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", -- ] -+if (build_with_chromium) { -+ source_set("qu8-vadd_arm64") { ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("qu8-rsum_arm64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-neon-u32-acc2.c", ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", +- "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/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", @@ -68552,16 +68665,12 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] ++ public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] -- } -+ public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } } +} @@ -68569,9 +68678,8 @@ - if (build_with_internal_optimization_guide) { - source_set("qs8-qc8w-igemm_x64_standalone") { - cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_arm64_standalone") { ++if (build_with_chromium) { ++ source_set("qu8-vadd_arm64") { + cflags = [ + + ] @@ -68644,13 +68752,14 @@ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++ "//third_party/pthreadpool", + ] - public_configs = [ ":xnnpack_public_config" ] - } -- } + public_configs = [ ":xnnpack_public_config" ] + } ++} - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -68685,11 +68794,22 @@ - 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 = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ ] - if (build_with_chromium) { - source_set( @@ -68721,28 +68841,21 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("qu8-vaddc_arm64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set( @@ -68780,20 +68893,67 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } ++ public_configs = [ ":xnnpack_public_config" ] ++ ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qs8-qu8-packw_x64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", +- ] ++if (build_with_chromium) { ++ source_set("qu8-vaddc_arm64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u16.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-neon-ld64-u32.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } + public_configs = [ ":xnnpack_public_config" ] } +} -- if (build_with_chromium) { -- source_set("qs8-qu8-packw_x64") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qs8-qu8-packw_x64_standalone") { - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { @@ -68810,46 +68970,6 @@ + "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qs8-qu8-packw_x64_standalone") { -- cflags = [] -- - sources = [ - "src/include/xnnpack.h", - "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c", @@ -68874,17 +68994,10 @@ - } - } - } -+if (build_with_chromium) { -+ 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" ] ++ configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { - source_set("qs8-rdsum_f16c-fma-avx2") { @@ -68910,21 +69023,18 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "//third_party/pthreadpool:pthreadpool_standalone", + ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ public_configs = [ ":xnnpack_public_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("qs8-rdsum_f16c-fma-avx2_standalone") { @@ -68956,8 +69066,9 @@ - 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" ] + } } +} @@ -68990,13 +69101,8 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -- -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_arm64_standalone") { ++if (build_with_chromium) { ++ source_set("qu8-vcvt_arm64") { + cflags = [ + + ] @@ -69007,6 +69113,14 @@ + "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set( @@ -69044,11 +69158,16 @@ - assert_no_deps = [ "//base" ] - } - } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - if (build_with_chromium) { - source_set("qs8-rdsum_sse4.1-no-sse4.2") { @@ -69073,17 +69192,26 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("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" + ] - public_configs = [ ":xnnpack_public_config" ] - } - } -+ public_configs = [ ":xnnpack_public_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { @@ -69115,6 +69243,15 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] ++ ++ public_configs = [ ":xnnpack_public_config" ] ++ + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } @@ -72965,7 +73102,10 @@ + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" ++ "src/src/x16-pack-lh/x16-packlh-igemm-neonsme.c", ++ "src/src/x16-pack-lh/x16-packlh-igemm-neonsme2.c", ++ "src/src/x16-pack-lh/x16-packlh-neonsme.c", ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" + ] - sources = [ @@ -73080,7 +73220,10 @@ + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" ++ "src/src/x16-pack-lh/x16-packlh-igemm-neonsme.c", ++ "src/src/x16-pack-lh/x16-packlh-igemm-neonsme2.c", ++ "src/src/x16-pack-lh/x16-packlh-neonsme.c", ++ "src/src/x16-pack-lh/x16-packlh-neonsme2.c" + ] - if (build_with_chromium) { @@ -74010,7 +74153,8 @@ + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-pack-lh/x32-packlh-neonsme.c" ++ "src/src/x32-pack-lh/x32-packlh-neonsme.c", ++ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" + ] - if (build_with_chromium) { @@ -74126,7 +74270,8 @@ + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x32-pack-lh/x32-packlh-neonsme.c" ++ "src/src/x32-pack-lh/x32-packlh-neonsme.c", ++ "src/src/x32-pack-lh/x32-packlh-neonsme2.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -83591,6 +83736,11 @@ + "src/include/xnnpack.h", + "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c" + ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - sources = [ - "src/include/xnnpack.h", @@ -83611,20 +83761,15 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- public_configs = [ ":xnnpack_public_config" ] +- } + public_configs = [ ":xnnpack_public_config" ] } +} @@ -84455,7 +84600,17 @@ - if (build_with_chromium) { - source_set("configs_arm64") { - cflags = [] -- ++if (build_with_chromium) { ++ source_set("f32-vhswish_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vhswish/gen/f32-vhswish-scalar.c" ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/configs/argmaxpool-config.c", @@ -84495,88 +84650,27 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+if (build_with_chromium) { -+ source_set("f32-vhswish_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ 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" ] -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("configs_arm64_standalone") { -- cflags = [] +- public_configs = [ ":xnnpack_public_config" ] +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] - -- 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" ] } +} -- if (build_with_chromium) { -- source_set("enums_arm64") { +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("configs_arm64_standalone") { - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { @@ -84592,52 +84686,30 @@ - sources = [ - "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -- } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("enums_arm64_standalone") { -- cflags = [] -+ public_configs = [ ":xnnpack_public_config" ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/enums/allocation-type.c", -- "src/src/enums/datatype-strings.c", -- "src/src/enums/microkernel-type.c", -- "src/src/enums/node-type.c", -- "src/src/enums/operator-type.c", +- "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" ] @@ -84657,19 +84729,30 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("f16-avgpool_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] -- +- source_set("enums_arm64") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.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" ] @@ -84683,6 +84766,19 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("enums_arm64_standalone") { +- cflags = [] +if (build_with_chromium) { + source_set("f32-vlog_ppc64") { + cflags = [ @@ -84694,28 +84790,13 @@ + "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" ] - -- # 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" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", +- "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" ] @@ -84736,12 +84817,24 @@ - assert_no_deps = [ "//base" ] - } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ + public_configs = [ ":xnnpack_public_config" ] } +} - if (build_with_chromium) { -- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { +- source_set("f16-avgpool_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { @@ -84757,7 +84850,7 @@ - sources = [ - "src/include/xnnpack.h", -- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -84790,11 +84883,111 @@ } +} +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f16-avgpool_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++if (build_with_chromium) { ++ source_set("f32-vlrelu_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-avgpool/gen/f16-avgpool-9p-minmax-neonfp16arith.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", +- ] ++ public_configs = [ ":xnnpack_public_config" ] ++ } ++} + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f32-vlrelu_ppc64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { - source_set("f16-conv-hwc2chw_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] -- ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-conv-hwc2chw/f16-conv-hwc2chw-3x3s2p1c3x4-neonfp16arith-2x2.c", @@ -84817,22 +85010,26 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { +- cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vlrelu_ppc64") { ++ source_set("f32-vmulcaddc_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] - -- if (build_with_chromium) { -- source_set("f16-dwconv2d-chw_arch=armv8.2-a+fp16") { -- cflags = [ "-march=armv8.2-a+fp16" ] ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] @@ -84876,14 +85073,14 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vlrelu_ppc64_standalone") { ++ source_set("f32-vmulcaddc_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vlrelu/gen/f32-vlrelu-scalar-u4.c" ++ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" + ] - sources = [ @@ -84962,14 +85159,17 @@ - source_set("f16-dwconv_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vmulcaddc_ppc64") { ++ source_set("f32-vrnd_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - sources = [ @@ -85020,14 +85220,17 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vmulcaddc_ppc64_standalone") { ++ source_set("f32-vrnd_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c1-minmax-scalar-2x.c" ++ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", ++ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" + ] - sources = [ @@ -85072,17 +85275,15 @@ - source_set("f16-f32-vcvt_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-vrnd_ppc64") { ++ source_set("f32-vrsqrt_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrnd/gen/f32-vrndd-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndne-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndu-scalar-libm-u1.c", -+ "src/src/f32-vrnd/gen/f32-vrndz-scalar-libm-u1.c" ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - sources = [ @@ -85131,17 +85332,15 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrnd_ppc64_standalone") { ++ source_set("f32-vrsqrt_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-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", ++ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" + ] - sources = [ @@ -85184,15 +85383,14 @@ - source_set("f16-f32acc-rdsum2_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vrsqrt_ppc64") { ++ source_set("f32-vsigmoid_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-rsqrt-u1.c", -+ "src/src/f32-vrsqrt/gen/f32-vrsqrt-scalar-sqrt.c" ++ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - sources = [ @@ -85239,15 +85437,14 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vrsqrt_ppc64_standalone") { ++ source_set("f32-vsigmoid_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-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" + ] - sources = [ @@ -85290,14 +85487,14 @@ - source_set("f16-f32acc-rdsum_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vsigmoid_ppc64") { ++ source_set("f32-vsin_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsigmoid/gen/f32-vsigmoid-scalar-rr2-lut64-p2-div-u2.c" ++ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - sources = [ @@ -85353,14 +85550,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsigmoid_ppc64_standalone") { ++ source_set("f32-vsin_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-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" + ] - deps = [ @@ -85427,14 +85624,14 @@ - "src/src/f16-f32acc-rsum/gen/f16-f32acc-rsum-neonfp16arith-u32-acc4.c", - ] +if (build_with_chromium) { -+ source_set("f32-vsin_ppc64") { ++ source_set("f32-vsqrt_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -85471,14 +85668,14 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsin_ppc64_standalone") { ++ source_set("f32-vsqrt_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsin/gen/f32-vsin-scalar-rational-5-4-div.c" ++ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" + ] - sources = [ @@ -85553,14 +85750,14 @@ - source_set("f16-gemm_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vsqrt_ppc64") { ++ source_set("f32-vtanh_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] - sources = [ @@ -85610,22 +85807,29 @@ - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vsqrt_ppc64_standalone") { ++ source_set("f32-vtanh_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vsqrt/gen/f32-vsqrt-scalar-sqrt.c" ++ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" + ] - -- asmflags = cflags ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + 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", @@ -85647,13 +85851,6 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] - public_configs = [ ":xnnpack_public_config" ] @@ -85668,22 +85865,31 @@ - source_set("f16-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-vtanh_ppc64") { ++ source_set("f32-vunary_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] - -- asmflags = cflags ++ + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] +- asmflags = cflags ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/f16-gemm/gen/f16-gemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -85712,13 +85918,6 @@ - assert_no_deps = [ "//base" ] - } - } -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -85728,14 +85927,16 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vtanh_ppc64_standalone") { ++ source_set("f32-vunary_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c" ++ "src/src/f32-vunary/gen/f32-vabs-scalar.c", ++ "src/src/f32-vunary/gen/f32-vneg-scalar.c", ++ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" + ] - sources = [ @@ -85778,16 +85979,36 @@ - source_set("f16-ibilinear-chw_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("f32-vunary_ppc64") { ++ source_set("operators_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vunary/gen/f32-vabs-scalar.c", -+ "src/src/f32-vunary/gen/f32-vneg-scalar.c", -+ "src/src/f32-vunary/gen/f32-vsqr-scalar.c" ++ "src/src/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" + ] - sources = [ @@ -85843,16 +86064,36 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vunary_ppc64_standalone") { ++ source_set("operators_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/operators/argmax-pooling-nhwc.c", ++ "src/src/operators/average-pooling-nhwc.c", ++ "src/src/operators/batch-matrix-multiply-nc.c", ++ "src/src/operators/binary-elementwise-nd.c", ++ "src/src/operators/constant-pad-nd.c", ++ "src/src/operators/convolution-nchw.c", ++ "src/src/operators/convolution-nhwc.c", ++ "src/src/operators/deconvolution-nhwc.c", ++ "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", ++ "src/src/operators/fully-connected-nc.c", ++ "src/src/operators/max-pooling-nhwc.c", ++ "src/src/operators/pack-lh.c", ++ "src/src/operators/reduce-nd.c", ++ "src/src/operators/resize-bilinear-nchw.c", ++ "src/src/operators/resize-bilinear-nhwc.c", ++ "src/src/operators/rope-nthc.c", ++ "src/src/operators/slice-nd.c", ++ "src/src/operators/softmax-nc.c", ++ "src/src/operators/transpose-nd.c", ++ "src/src/operators/unary-elementwise-nc.c", ++ "src/src/operators/unpooling-nhwc.c" + ] - deps = [ @@ -85934,34 +86175,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("operators_ppc64") { ++ source_set("qd8-f32-qb4w-gemm_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" ++ "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" ] @@ -86018,34 +86240,15 @@ - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("operators_ppc64_standalone") { ++ source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/operators/argmax-pooling-nhwc.c", -+ "src/src/operators/average-pooling-nhwc.c", -+ "src/src/operators/batch-matrix-multiply-nc.c", -+ "src/src/operators/binary-elementwise-nd.c", -+ "src/src/operators/constant-pad-nd.c", -+ "src/src/operators/convolution-nchw.c", -+ "src/src/operators/convolution-nhwc.c", -+ "src/src/operators/deconvolution-nhwc.c", -+ "src/src/operators/dynamic-fully-connected-nc.c", -+ "src/src/operators/fully-connected-nc.c", -+ "src/src/operators/max-pooling-nhwc.c", -+ "src/src/operators/pack-lh.c", -+ "src/src/operators/reduce-nd.c", -+ "src/src/operators/resize-bilinear-nchw.c", -+ "src/src/operators/resize-bilinear-nhwc.c", -+ "src/src/operators/rope-nthc.c", -+ "src/src/operators/slice-nd.c", -+ "src/src/operators/softmax-nc.c", -+ "src/src/operators/transpose-nd.c", -+ "src/src/operators/unary-elementwise-nc.c", -+ "src/src/operators/unpooling-nhwc.c" ++ "src/src/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" ] @@ -86096,30 +86299,23 @@ - source_set("f16-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("qd8-f32-qb4w-gemm_ppc64") { ++ source_set("qd8-f32-qc4w-gemm_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ "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" + ] -+ + +- asmflags = cflags + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- asmflags = cflags -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - - sources = [ - "src/include/xnnpack.h", - "src/src/f16-igemm/f16-igemm-1x16-minmax-asm-aarch64-neonfp16arith-ld64.S", @@ -86148,6 +86344,13 @@ - assert_no_deps = [ "//base" ] - } - } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -86157,15 +86360,15 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qb4w-gemm_ppc64_standalone") { ++ source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qb4w-gemm/gen/qd8-f32-qb4w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -86208,15 +86411,16 @@ - source_set("f16-maxpool_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qd8-f32-qc4w-gemm_ppc64") { ++ source_set("qd8-f32-qc8w-gemm_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -86263,15 +86467,16 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc4w-gemm_ppc64_standalone") { ++ source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -86314,16 +86519,16 @@ - source_set("f16-qs8-vcvt_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qd8-f32-qc8w-gemm_ppc64") { ++ source_set("qd8-f32-qc8w-igemm_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -86370,16 +86575,16 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-gemm_ppc64_standalone") { ++ source_set("qd8-f32-qc8w-igemm_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/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", ++ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -86422,16 +86627,17 @@ - source_set("f16-qs8-vcvt_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qd8-f32-qc8w-igemm_ppc64") { ++ source_set("qs8-dwconv_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x2-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-1x4-minmax-scalar.c", -+ "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x4-minmax-scalar.c" ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -86478,16 +86684,17 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qd8-f32-qc8w-igemm_ppc64_standalone") { ++ source_set("qs8-dwconv_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/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -86530,17 +86737,26 @@ - source_set("f16-qu8-vcvt_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-dwconv_ppc64") { ++ source_set("qs8-f32-vcvt_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-dwconv/gen/qs8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" ++ ] ++ ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -86566,18 +86782,6 @@ - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -86587,17 +86791,14 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-dwconv_ppc64_standalone") { ++ source_set("qs8-f32-vcvt_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/qs8-f32-vcvt/gen/qs8-f32-vcvt-scalar-u4.c" + ] - sources = [ @@ -86640,14 +86841,17 @@ - source_set("f16-raddstoreexpminusmax_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qs8-f32-vcvt_ppc64") { ++ source_set("qs8-packw_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-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" + ] - sources = [ @@ -86704,14 +86908,17 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-f32-vcvt_ppc64_standalone") { ++ source_set("qs8-packw_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-f32-vcvt/gen/qs8-f32-vcvt-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" + ] - deps = [ @@ -86792,17 +86999,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-packw_ppc64") { ++ source_set("qs8-qc4w-gemm_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-packw/gen/qs8-packw-x16c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-gio-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x4c8-gemm-goi-scalar.c", -+ "src/src/qs8-packw/gen/qs8-packw-x8c8-gemm-gio-scalar.c" ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -86857,17 +87062,15 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-packw_ppc64_standalone") { ++ source_set("qs8-qc4w-gemm_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/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" + ] - sources = [ @@ -86912,15 +87115,19 @@ - source_set("f16-rminmax_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qs8-qc4w-gemm_ppc64") { ++ source_set("qs8-qc8w-dwconv_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -86980,15 +87187,19 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc4w-gemm_ppc64_standalone") { ++ source_set("qs8-qc8w-dwconv_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-1x4-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c" ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - deps = [ @@ -87069,19 +87280,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-qc8w-dwconv_ppc64") { ++ source_set("qs8-qc8w-gemm_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-3p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qs8-qc8w-dwconv/gen/qs8-qc8w-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "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" ] @@ -87135,19 +87342,15 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-dwconv_ppc64_standalone") { ++ source_set("qs8-qc8w-gemm_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/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-gemm/gen/qs8-qc8w-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -87190,15 +87393,15 @@ - source_set("f16-vapproxgelu_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qs8-qc8w-gemm_ppc64") { ++ source_set("qs8-qc8w-igemm_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" ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -87254,15 +87457,15 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-gemm_ppc64_standalone") { ++ source_set("qs8-qc8w-igemm_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/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 = [ @@ -87362,15 +87565,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-qc8w-igemm_ppc64") { ++ source_set("qs8-qu8-packw_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -87445,15 +87647,14 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qc8w-igemm_ppc64_standalone") { ++ source_set("qs8-qu8-packw_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/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" + ] - sources = [ @@ -87496,14 +87697,14 @@ - source_set("f16-vclamp_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qs8-qu8-packw_ppc64") { ++ source_set("qs8-rdsum_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] - sources = [ @@ -87559,14 +87760,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-qu8-packw_ppc64_standalone") { ++ source_set("qs8-rdsum_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-qu8-packw/gen/qs8-qu8-packw-x16c8-gemm-goi-scalar.c" ++ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" + ] - deps = [ @@ -87645,14 +87846,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-rdsum_ppc64") { ++ source_set("qs8-rsum_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -87706,14 +87907,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rdsum_ppc64_standalone") { ++ source_set("qs8-rsum_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rdsum/gen/qs8-rdsum-minmax-fp32-scalar-u1-acc1.c" ++ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" + ] - sources = [ @@ -87756,14 +87957,15 @@ - source_set("f16-vcos_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-rsum_ppc64") { ++ source_set("qs8-vadd_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] - sources = [ @@ -87819,14 +88021,15 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-rsum_ppc64_standalone") { ++ source_set("qs8-vadd_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-rsum/gen/qs8-rsum-scalar-u4.c" ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u1.c", ++ "src/src/qs8-vadd/gen/qs8-vadd-minmax-scalar-u4.c" + ] - deps = [ @@ -87905,15 +88108,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-vadd_ppc64") { ++ source_set("qs8-vaddc_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" ++ "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" ] @@ -87967,15 +88170,15 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vadd_ppc64_standalone") { ++ source_set("qs8-vaddc_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/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", ++ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" + ] - sources = [ @@ -88018,15 +88221,14 @@ - source_set("f16-vexp_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qs8-vaddc_ppc64") { ++ source_set("qs8-vcvt_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u1.c", -+ "src/src/qs8-vaddc/gen/qs8-vaddc-minmax-scalar-u4.c" ++ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] - sources = [ @@ -88082,15 +88284,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vaddc_ppc64_standalone") { ++ source_set("qs8-vcvt_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/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" + ] - deps = [ @@ -88169,14 +88370,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-vcvt_ppc64") { ++ source_set("qs8-vlrelu_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -88230,14 +88431,14 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vcvt_ppc64_standalone") { ++ source_set("qs8-vlrelu_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vcvt/gen/qs8-vcvt-scalar-u4.c" ++ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" + ] - sources = [ @@ -88280,14 +88481,14 @@ - source_set("f16-vhswish_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qs8-vlrelu_ppc64") { ++ source_set("qs8-vmul_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" + ] - sources = [ @@ -88343,14 +88544,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vlrelu_ppc64_standalone") { ++ source_set("qs8-vmul_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vlrelu/gen/qs8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" + ] - deps = [ @@ -88417,14 +88618,14 @@ - "src/src/f16-vmulcaddc/gen/f16-vmulcaddc-c8-minmax-neonfp16arith-2x.c", - ] +if (build_with_chromium) { -+ source_set("qs8-vmul_ppc64") { ++ source_set("qs8-vmulc_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -88461,14 +88662,14 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmul_ppc64_standalone") { ++ source_set("qs8-vmulc_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmul/gen/qs8-vmul-minmax-fp32-scalar-u4.c" ++ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" + ] - sources = [ @@ -88543,14 +88744,14 @@ - source_set("f16-vrnd_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qs8-vmulc_ppc64") { ++ source_set("qs8-vprelu_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] - sources = [ @@ -88609,14 +88810,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vmulc_ppc64_standalone") { ++ source_set("qs8-vprelu_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vmulc/gen/qs8-vmulc-minmax-fp32-scalar-u4.c" ++ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" + ] - deps = [ @@ -88696,14 +88897,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-vprelu_ppc64") { ++ source_set("qs8-vpreluc_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -88758,14 +88959,14 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vprelu_ppc64_standalone") { ++ source_set("qs8-vpreluc_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vprelu/gen/qs8-vprelu-scalar-u8.c" ++ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" + ] - sources = [ @@ -88808,14 +89009,14 @@ - source_set("f16-vsin_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qs8-vpreluc_ppc64") { ++ source_set("qs8-vrpreluc_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] - sources = [ @@ -88871,14 +89072,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vpreluc_ppc64_standalone") { ++ source_set("qs8-vrpreluc_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vpreluc/gen/qs8-vpreluc-scalar-u8.c" ++ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" + ] - deps = [ @@ -88958,14 +89159,17 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qs8-vrpreluc_ppc64") { ++ source_set("qu8-dwconv_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.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" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -89020,14 +89224,17 @@ - cflags = [ "-march=armv8.2-a+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qs8-vrpreluc_ppc64_standalone") { ++ source_set("qu8-dwconv_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c" ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", ++ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -89071,17 +89278,14 @@ - source_set("f16-vtanh_arch=armv8.2-a+fp16_standalone") { - cflags = [ "-march=armv8.2-a+fp16" ] +if (build_with_chromium) { -+ source_set("qu8-dwconv_ppc64") { ++ source_set("qu8-f32-vcvt_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-25p2c-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p1c-minmax-fp32-scalar-fmagic.c", -+ "src/src/qu8-dwconv/gen/qu8-dwconv-9p2c-minmax-fp32-scalar-lrintf.c" ++ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] - sources = [ @@ -89140,17 +89344,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-dwconv_ppc64_standalone") { ++ source_set("qu8-f32-vcvt_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/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" + ] - deps = [ @@ -89232,14 +89433,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qu8-f32-vcvt_ppc64") { ++ source_set("qu8-gemm_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -89294,14 +89496,15 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-f32-vcvt_ppc64_standalone") { ++ source_set("qu8-gemm_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-f32-vcvt/gen/qu8-f32-vcvt-scalar-u4.c" ++ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -89345,15 +89548,15 @@ - source_set("f32-avgpool_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qu8-gemm_ppc64") { ++ source_set("qu8-igemm_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-gemm/gen/qu8-gemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-gemm/gen/qu8-gemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -89401,15 +89604,15 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-gemm_ppc64_standalone") { ++ source_set("qu8-igemm_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/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", ++ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" + ] - sources = [ @@ -89454,15 +89657,14 @@ - source_set("f32-conv-hwc2chw_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qu8-igemm_ppc64") { ++ source_set("qu8-rdsum_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-igemm/gen/qu8-igemm-1x4-minmax-fp32-scalar-lrintf.c", -+ "src/src/qu8-igemm/gen/qu8-igemm-3x4-minmax-fp32-scalar-lrintf.c" ++ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - sources = [ @@ -89511,15 +89713,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-igemm_ppc64_standalone") { ++ source_set("qu8-rdsum_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/qu8-rdsum/gen/qu8-rdsum-scalar.c" + ] - sources = [ @@ -89621,14 +89822,14 @@ - source_set("f32-dwconv_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("qu8-rdsum_ppc64") { ++ source_set("qu8-rsum_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - asmflags = cflags @@ -89664,14 +89865,14 @@ - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rdsum_ppc64_standalone") { ++ source_set("qu8-rsum_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rdsum/gen/qu8-rdsum-scalar.c" ++ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -89762,14 +89963,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qu8-rsum_ppc64") { ++ source_set("qu8-vadd_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -89840,14 +90042,15 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-rsum_ppc64_standalone") { ++ source_set("qu8-vadd_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-rsum/gen/qu8-rsum-scalar-u4.c" ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", ++ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" + ] - sources = [ @@ -89892,15 +90095,15 @@ - source_set("f32-f16-vcvt_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qu8-vadd_ppc64") { ++ source_set("qu8-vaddc_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u1.c", -+ "src/src/qu8-vadd/gen/qu8-vadd-minmax-scalar-u4.c" ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - sources = [ @@ -89987,15 +90190,15 @@ - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vadd_ppc64_standalone") { ++ source_set("qu8-vaddc_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/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", ++ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -90107,15 +90310,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qu8-vaddc_ppc64") { ++ source_set("qu8-vcvt_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u1.c", -+ "src/src/qu8-vaddc/gen/qu8-vaddc-minmax-scalar-u4.c" ++ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -90187,15 +90389,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vaddc_ppc64_standalone") { ++ source_set("qu8-vcvt_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-vcvt/gen/qu8-vcvt-scalar-u4.c" + ] - sources = [ @@ -90240,14 +90441,14 @@ - source_set("f32-ibilinear-chw_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qu8-vcvt_ppc64") { ++ source_set("qu8-vlrelu_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] - sources = [ @@ -90307,14 +90508,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vcvt_ppc64_standalone") { ++ source_set("qu8-vlrelu_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vcvt/gen/qu8-vcvt-scalar-u4.c" ++ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" + ] - deps = [ @@ -90378,14 +90579,14 @@ - source_set("f32-igemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("qu8-vlrelu_ppc64") { ++ source_set("qu8-vmul_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" + ] - asmflags = cflags @@ -90448,14 +90649,14 @@ - asmflags = cflags +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vlrelu_ppc64_standalone") { ++ source_set("qu8-vmul_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vlrelu/gen/qu8-vlrelu-scalar-andxor-u4.c" ++ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" + ] - sources = [ @@ -90562,14 +90763,14 @@ - source_set("f32-igemm_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("qu8-vmul_ppc64") { ++ source_set("qu8-vmulc_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" + ] - sources = [ @@ -90644,14 +90845,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmul_ppc64_standalone") { ++ source_set("qu8-vmulc_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmul/gen/qu8-vmul-minmax-fp32-scalar-u4.c" ++ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" + ] - deps = [ @@ -90737,14 +90938,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qu8-vmulc_ppc64") { ++ source_set("qu8-vprelu_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -90806,14 +91007,14 @@ - asmflags = cflags +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vmulc_ppc64_standalone") { ++ source_set("qu8-vprelu_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vmulc/gen/qu8-vmulc-minmax-fp32-scalar-u4.c" ++ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" + ] - sources = [ @@ -90858,14 +91059,14 @@ - source_set("f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("qu8-vprelu_ppc64") { ++ source_set("qu8-vpreluc_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] - asmflags = cflags @@ -90915,14 +91116,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vprelu_ppc64_standalone") { ++ source_set("qu8-vpreluc_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vprelu/gen/qu8-vprelu-scalar-u8.c" ++ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" + ] - sources = [ @@ -91024,14 +91225,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("qu8-vpreluc_ppc64") { ++ source_set("qu8-vrpreluc_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -91088,14 +91289,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vpreluc_ppc64_standalone") { ++ source_set("qu8-vrpreluc_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vpreluc/gen/qu8-vpreluc-scalar-u8.c" ++ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" + ] - sources = [ @@ -91179,14 +91380,16 @@ - "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c", - ] +if (build_with_chromium) { -+ source_set("qu8-vrpreluc_ppc64") { ++ source_set("reference_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-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" ] @@ -91223,14 +91426,16 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("qu8-vrpreluc_ppc64_standalone") { ++ source_set("reference_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/qu8-vrpreluc/gen/qu8-vrpreluc-scalar-u8.c" ++ "src/src/reference/binary-elementwise.cc", ++ "src/src/reference/packing.cc", ++ "src/src/reference/unary-elementwise.cc" + ] - sources = [ @@ -91306,16 +91511,14 @@ - source_set("f32-rdminmax_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("reference_ppc64") { ++ source_set("s8-ibilinear_ppc64") { + 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/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" + ] - sources = [ @@ -91375,16 +91578,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("reference_ppc64_standalone") { ++ source_set("s8-ibilinear_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/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" + ] - deps = [ @@ -91453,14 +91654,14 @@ - "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c", - ] +if (build_with_chromium) { -+ source_set("s8-ibilinear_ppc64") { ++ source_set("s8-maxpool_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -91497,14 +91698,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-ibilinear_ppc64_standalone") { ++ source_set("s8-maxpool_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-ibilinear/gen/s8-ibilinear-scalar-u1.c" ++ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -91582,14 +91783,15 @@ - source_set("f32-rminmax_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("s8-maxpool_ppc64") { ++ source_set("s8-rdminmax_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" + ] - sources = [ @@ -91651,14 +91853,15 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-maxpool_ppc64_standalone") { ++ source_set("s8-rdminmax_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-maxpool/gen/s8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", ++ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" + ] - deps = [ @@ -91739,15 +91942,16 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("s8-rdminmax_ppc64") { ++ source_set("s8-rminmax_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ "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" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -91802,15 +92006,16 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-rdminmax_ppc64_standalone") { ++ source_set("s8-rminmax_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", -+ "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c" ++ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", ++ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" + ] - sources = [ @@ -91900,16 +92105,14 @@ - "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c", - ] +if (build_with_chromium) { -+ source_set("s8-rminmax_ppc64") { ++ source_set("s8-vclamp_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -+ "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c" ++ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -91946,16 +92149,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-rminmax_ppc64_standalone") { ++ source_set("s8-vclamp_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/s8-vclamp/s8-vclamp-scalar-u4.c" + ] - sources = [ @@ -92065,14 +92266,42 @@ - source_set("f32-vbinary_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("s8-vclamp_ppc64") { ++ source_set("subgraph_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" + ] - sources = [ @@ -92166,14 +92395,42 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("s8-vclamp_ppc64_standalone") { ++ source_set("subgraph_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/s8-vclamp/s8-vclamp-scalar-u4.c" ++ "src/src/subgraph/argmax-pooling-2d.c", ++ "src/src/subgraph/average-pooling-2d.c", ++ "src/src/subgraph/batch-matrix-multiply.c", ++ "src/src/subgraph/binary.c", ++ "src/src/subgraph/concatenate.c", ++ "src/src/subgraph/convolution-2d.c", ++ "src/src/subgraph/copy.c", ++ "src/src/subgraph/deconvolution-2d.c", ++ "src/src/subgraph/deprecated.c", ++ "src/src/subgraph/depth-to-space-2d.c", ++ "src/src/subgraph/depthwise-convolution-2d.c", ++ "src/src/subgraph/even-split.c", ++ "src/src/subgraph/fully-connected-sparse.c", ++ "src/src/subgraph/fully-connected.c", ++ "src/src/subgraph/max-pooling-2d.c", ++ "src/src/subgraph/pack-lh.c", ++ "src/src/subgraph/reshape-helpers.c", ++ "src/src/subgraph/rope.c", ++ "src/src/subgraph/softmax.c", ++ "src/src/subgraph/space-to-depth-2d.c", ++ "src/src/subgraph/static-constant-pad.c", ++ "src/src/subgraph/static-reduce.c", ++ "src/src/subgraph/static-resize-bilinear-2d.c", ++ "src/src/subgraph/static-slice.c", ++ "src/src/subgraph/static-transpose.c", ++ "src/src/subgraph/subgraph-utils.c", ++ "src/src/subgraph/unary.c", ++ "src/src/subgraph/unpooling-2d.c", ++ "src/src/subgraph/validation.c" + ] - deps = [ @@ -92242,42 +92499,22 @@ - "src/src/f32-vcmul/gen/f32-vcmul-scalar-u4.c", - ] +if (build_with_chromium) { -+ source_set("subgraph_ppc64") { ++ source_set("tables_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/subgraph/argmax-pooling-2d.c", -+ "src/src/subgraph/average-pooling-2d.c", -+ "src/src/subgraph/batch-matrix-multiply.c", -+ "src/src/subgraph/binary.c", -+ "src/src/subgraph/concatenate.c", -+ "src/src/subgraph/convolution-2d.c", -+ "src/src/subgraph/copy.c", -+ "src/src/subgraph/deconvolution-2d.c", -+ "src/src/subgraph/deprecated.c", -+ "src/src/subgraph/depth-to-space-2d.c", -+ "src/src/subgraph/depthwise-convolution-2d.c", -+ "src/src/subgraph/even-split.c", -+ "src/src/subgraph/fully-connected-sparse.c", -+ "src/src/subgraph/fully-connected.c", -+ "src/src/subgraph/max-pooling-2d.c", -+ "src/src/subgraph/pack-lh.c", -+ "src/src/subgraph/reshape-helpers.c", -+ "src/src/subgraph/rope.c", -+ "src/src/subgraph/softmax.c", -+ "src/src/subgraph/space-to-depth-2d.c", -+ "src/src/subgraph/static-constant-pad.c", -+ "src/src/subgraph/static-reduce.c", -+ "src/src/subgraph/static-resize-bilinear-2d.c", -+ "src/src/subgraph/static-slice.c", -+ "src/src/subgraph/static-transpose.c", -+ "src/src/subgraph/subgraph-utils.c", -+ "src/src/subgraph/unary.c", -+ "src/src/subgraph/unpooling-2d.c", -+ "src/src/subgraph/validation.c" ++ "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" ] @@ -92314,42 +92551,22 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("subgraph_ppc64_standalone") { ++ source_set("tables_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/tables/exp2-k-over-2048.c", ++ "src/src/tables/exp2-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-16.c", ++ "src/src/tables/exp2minus-k-over-2048.c", ++ "src/src/tables/exp2minus-k-over-32.c", ++ "src/src/tables/exp2minus-k-over-4.c", ++ "src/src/tables/exp2minus-k-over-64.c", ++ "src/src/tables/exp2minus-k-over-8.c", ++ "src/src/tables/vlog.c" + ] - sources = [ @@ -92427,22 +92644,14 @@ - source_set("f32-vcopysign_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("tables_ppc64") { ++ source_set("u8-ibilinear_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/tables/exp2-k-over-2048.c", -+ "src/src/tables/exp2-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-16.c", -+ "src/src/tables/exp2minus-k-over-2048.c", -+ "src/src/tables/exp2minus-k-over-32.c", -+ "src/src/tables/exp2minus-k-over-4.c", -+ "src/src/tables/exp2minus-k-over-64.c", -+ "src/src/tables/exp2minus-k-over-8.c", -+ "src/src/tables/vlog.c" ++ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" + ] - sources = [ @@ -92504,22 +92713,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("tables_ppc64_standalone") { ++ source_set("u8-ibilinear_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/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" + ] - deps = [ @@ -92602,14 +92803,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("u8-ibilinear_ppc64") { ++ source_set("u8-lut32norm_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -92666,14 +92867,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-ibilinear_ppc64_standalone") { ++ source_set("u8-lut32norm_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-ibilinear/gen/u8-ibilinear-scalar-u1.c" ++ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" + ] - sources = [ @@ -92717,14 +92918,14 @@ - source_set("f32-vexp_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("u8-lut32norm_ppc64") { ++ source_set("u8-maxpool_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -92782,14 +92983,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-lut32norm_ppc64_standalone") { ++ source_set("u8-maxpool_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-lut32norm/u8-lut32norm-scalar.c" ++ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" + ] - deps = [ @@ -92870,14 +93071,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("u8-maxpool_ppc64") { ++ source_set("u8-rdminmax_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -92932,14 +93134,15 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-maxpool_ppc64_standalone") { ++ source_set("u8-rdminmax_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-maxpool/gen/u8-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", ++ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" + ] - sources = [ @@ -92983,15 +93186,16 @@ - source_set("f32-vlog_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("u8-rdminmax_ppc64") { ++ source_set("u8-rminmax_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ "src/src/u8-rminmax/gen/u8-rmax-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rmin-scalar-u2-acc2.c", ++ "src/src/u8-rminmax/gen/u8-rminmax-scalar-u2-acc2.c" + ] - sources = [ @@ -93049,15 +93253,16 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-rdminmax_ppc64_standalone") { ++ source_set("u8-rminmax_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-rdminmax/gen/u8-rdmax-2p2x-scalar-u2.c", -+ "src/src/u8-rdminmax/gen/u8-rdmin-2p2x-scalar-u2.c" ++ "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" + ] - deps = [ @@ -93127,16 +93332,14 @@ - "src/src/f32-vmulcaddc/gen/f32-vmulcaddc-c4-minmax-neonfma-2x.c", - ] +if (build_with_chromium) { -+ source_set("u8-rminmax_ppc64") { ++ source_set("u8-vclamp_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" ++ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -93173,16 +93376,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-rminmax_ppc64_standalone") { ++ source_set("u8-vclamp_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-vclamp/u8-vclamp-scalar-u4.c" + ] - sources = [ @@ -93267,14 +93468,14 @@ - source_set("f32-vrnd_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("u8-vclamp_ppc64") { ++ source_set("x16-transposec_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] - sources = [ @@ -93343,14 +93544,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("u8-vclamp_ppc64_standalone") { ++ source_set("x16-transposec_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/u8-vclamp/u8-vclamp-scalar-u4.c" ++ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" + ] - deps = [ @@ -93433,14 +93634,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("x16-transposec_ppc64") { ++ source_set("x16-x32-packw_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -93496,14 +93698,15 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x16-transposec_ppc64_standalone") { ++ source_set("x16-x32-packw_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-transposec/gen/x16-transposec-2x4-scalar-int.c" ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", ++ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" + ] - sources = [ @@ -93547,15 +93750,14 @@ - source_set("f32-vsin_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("x16-x32-packw_ppc64") { ++ source_set("x24-transposec_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-gio-scalar.c", -+ "src/src/x16-x32-packw/gen/x16-x32-packw-x32c2-gemm-goi-scalar.c" ++ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] - sources = [ @@ -93613,15 +93815,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x16-x32-packw_ppc64_standalone") { ++ source_set("x24-transposec_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/x24-transposec/gen/x24-transposec-1x2-scalar.c" + ] - deps = [ @@ -93689,59 +93890,51 @@ - "src/src/f32-vtanh/gen/f32-vtanh-neon-rational-9-8-div.c", - "src/src/f32-vtanh/gen/f32-vtanh-scalar-rational-9-8-div.c", - ] -+if (build_with_chromium) { -+ source_set("x24-transposec_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.c" -+ ] - +- - configs -= [ "//build/config/compiler:chromium_code" ] - configs += [ "//build/config/compiler:no_chromium_code" ] - configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] - configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vtanh_arm64_standalone") { -- cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x24-transposec_ppc64_standalone") { ++if (build_with_chromium) { ++ source_set("x32-packw_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x24-transposec/gen/x24-transposec-1x2-scalar.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" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("f32-vtanh_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", + ] - sources = [ @@ -93768,119 +93961,13 @@ - assert_no_deps = [ "//base" ] - } - } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ public_configs = [ ":xnnpack_public_config" ] + } ++} - if (build_with_chromium) { - source_set("f32-vunary_arm64") { - cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/f32-vunary/gen/f32-vabs-neon.c", -- "src/src/f32-vunary/gen/f32-vabs-scalar.c", -- "src/src/f32-vunary/gen/f32-vneg-neon.c", -- "src/src/f32-vunary/gen/f32-vneg-scalar.c", -- "src/src/f32-vunary/gen/f32-vsqr-neon.c", -- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("f32-vunary_arm64_standalone") { -- cflags = [] -+if (build_with_chromium) { -+ source_set("x32-packw_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x2-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x32-gemm-goi-scalar-int-u2.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-gio-scalar.c", -+ "src/src/x32-packw/gen/x32-packw-x4-gemm-goi-scalar-float-u4.c", -+ "src/src/x32-packw/gen/x32-packw-x64-gemm-goi-scalar-int-u2.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/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" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - -- if (build_with_chromium) { -- source_set("operators_arm64") { -- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("x32-packw_ppc64_standalone") { @@ -93900,27 +93987,12 @@ - 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-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" ] @@ -93951,10 +94023,115 @@ - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("operators_arm64_standalone") { +- source_set("f32-vunary_arm64_standalone") { - cflags = [] + public_configs = [ ":xnnpack_public_config" ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/f32-vunary/gen/f32-vabs-neon.c", +- "src/src/f32-vunary/gen/f32-vabs-scalar.c", +- "src/src/f32-vunary/gen/f32-vneg-neon.c", +- "src/src/f32-vunary/gen/f32-vneg-scalar.c", +- "src/src/f32-vunary/gen/f32-vsqr-neon.c", +- "src/src/f32-vunary/gen/f32-vsqr-scalar.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("operators_arm64") { +- cflags = [] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/operators/argmax-pooling-nhwc.c", +- "src/src/operators/average-pooling-nhwc.c", +- "src/src/operators/batch-matrix-multiply-nc.c", +- "src/src/operators/binary-elementwise-nd.c", +- "src/src/operators/constant-pad-nd.c", +- "src/src/operators/convolution-nchw.c", +- "src/src/operators/convolution-nhwc.c", +- "src/src/operators/deconvolution-nhwc.c", +- "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", +- "src/src/operators/fully-connected-nc.c", +- "src/src/operators/max-pooling-nhwc.c", +- "src/src/operators/pack-lh.c", +- "src/src/operators/reduce-nd.c", +- "src/src/operators/resize-bilinear-nchw.c", +- "src/src/operators/resize-bilinear-nhwc.c", +- "src/src/operators/rope-nthc.c", +- "src/src/operators/slice-nd.c", +- "src/src/operators/softmax-nc.c", +- "src/src/operators/transpose-nd.c", +- "src/src/operators/unary-elementwise-nc.c", +- "src/src/operators/unpooling-nhwc.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x32-transposec_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("operators_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/operators/argmax-pooling-nhwc.c", @@ -93966,6 +94143,8 @@ - "src/src/operators/convolution-nhwc.c", - "src/src/operators/deconvolution-nhwc.c", - "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", - "src/src/operators/fully-connected-nc.c", - "src/src/operators/max-pooling-nhwc.c", - "src/src/operators/pack-lh.c", @@ -93997,63 +94176,13 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- if (build_with_chromium) { -- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] -- -- sources = [ -- "src/include/xnnpack.h", -- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", -- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", -- ] -+if (build_with_chromium) { -+ source_set("x32-transposec_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x32-transposec/gen/x32-transposec-2x4-scalar-int.c" -+ ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] - } + public_configs = [ ":xnnpack_public_config" ] } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- if (build_with_chromium) { +- source_set("pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { @@ -94069,37 +94198,17 @@ - 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-f16-f16-igemm/pf16-f16-f16-igemm-32x32c2-minmax-neonsme2.c", - ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- if (build_with_chromium) { -- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { -- cflags = [ "-march=armv8.2-a+sve+sve2" ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -94107,19 +94216,6 @@ + "//third_party/pthreadpool:pthreadpool_standalone", + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", @@ -94137,7 +94233,7 @@ - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- source_set("pf16-f16-f16-igemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] +if (build_with_chromium) { + source_set("x32-unpool_ppc64") { @@ -94152,10 +94248,7 @@ - sources = [ - "src/include/xnnpack.h", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", -- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", -- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", +- "src/src/pf16-f16-f16-igemm/pf16-f16-f16-igemm-32x32c2-minmax-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94183,7 +94276,7 @@ + configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { +- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", @@ -94194,7 +94287,8 @@ - sources = [ - "src/include/xnnpack.h", -- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", - ] + public_configs = [ ":xnnpack_public_config" ] + } @@ -94239,13 +94333,14 @@ - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { +- source_set("pf16-gemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] + public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-1x32c2-minmax-neonsme2.c", +- "src/src/pf16-gemm/pf16-gemm-32x32c2-minmax-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94272,13 +94367,15 @@ +} - if (build_with_chromium) { -- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2") { +- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] - - sources = [ - "src/include/xnnpack.h", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", -- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94313,7 +94410,7 @@ - # 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") { +- source_set("pf32-gemm_arch=armv8.2-a+sve+sve2_standalone") { - cflags = [ "-march=armv8.2-a+sve+sve2" ] + deps = [ + "//third_party/cpuinfo", @@ -94324,8 +94421,10 @@ - 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/pf32-gemm/pf32-gemm-1x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-1x32-minmax-neonsme2.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme.c", +- "src/src/pf32-gemm/pf32-gemm-32x32-minmax-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -94351,8 +94450,8 @@ +} - if (build_with_chromium) { -- source_set("qb4-packw_arch=armv8.2-a+dotprod") { -- cflags = [ "-march=armv8.2-a+dotprod" ] +- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("x64-transposec_ppc64_standalone") { @@ -94367,8 +94466,7 @@ - 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/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -94403,8 +94501,8 @@ - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { -- cflags = [ "-march=armv8.2-a+dotprod" ] +- source_set("pqs8-f32-qc8w-igemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] +if (build_with_chromium) { + source_set("x8-lut_ppc64") { + cflags = [ @@ -94416,6 +94514,177 @@ + "src/src/x8-lut/gen/x8-lut-scalar-u4.c" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pqs8-f32-qc8w-igemm/pqs8-f32-qc8w-igemm-32x32c4-minmax-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- if (build_with_chromium) { +- source_set("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", ++ ] + +- 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" ] ++# This is a target that cannot depend on //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" ++ ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("pqs8-qc8w-gemm_arch=armv8.2-a+sve+sve2_standalone") { +- cflags = [ "-march=armv8.2-a+sve+sve2" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-1x32c4-minmax-neonsme2.c", +- "src/src/pqs8-qc8w-gemm/pqs8-qc8w-gemm-32x32c4-minmax-neonsme2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- if (build_with_chromium) { +- source_set("qb4-packw_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", +- "src/src/qb4-packw/gen/qb4-packw-x16c8-gemm-goi-aarch64-neondot.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++if (build_with_chromium) { ++ source_set("x8-packq_ppc64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qb4-packw_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qb4-packw/gen/qb4-packw-x16c4-gemm-goi-aarch64-neondot.c", @@ -94440,18 +94709,6 @@ - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -94461,14 +94718,14 @@ - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("x8-lut_ppc64_standalone") { ++ source_set("x8-packq_ppc64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-lut/gen/x8-lut-scalar-u4.c" ++ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" + ] - sources = [ @@ -94512,14 +94769,17 @@ - source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+dotprod+fp16_standalone") { - cflags = [ "-march=armv8.2-a+dotprod+fp16" ] +if (build_with_chromium) { -+ source_set("x8-packq_ppc64") { ++ source_set("x8-packw_ppc64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" ++ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", ++ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] - sources = [ @@ -94546,134 +94806,35 @@ - assert_no_deps = [ "//base" ] - } - } +- } + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - if (build_with_chromium) { - source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16") { - cflags = [ "-march=armv8.2-a+fp16" ] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("x8-packq_ppc64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packq/x8-packq-scalar-f32qp8-u1.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { -- cflags = [ "-march=armv8.2-a+fp16" ] -+if (build_with_chromium) { -+ source_set("x8-packw_ppc64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/x8-packw/gen/x8-packw-x16-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x32-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x4-gemm-goi-scalar-u2.c", -+ "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", + "//third_party/fxdiv", + "//third_party/pthreadpool", + ] -+ + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/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" ] - } ++ } +} -- if (build_with_chromium) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("x8-packw_ppc64_standalone") { @@ -94689,20 +94850,20 @@ + "src/src/x8-packw/gen/x8-packw-x8-gemm-goi-scalar-u2.c" + ] -- sources = [ -- "src/include/xnnpack.h", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] + configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] + configs += [ ":xnnpack_private_config" ] -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -94710,25 +94871,62 @@ + "//third_party/pthreadpool:pthreadpool_standalone", + ] +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+fp16" ] ++ public_configs = [ ":xnnpack_public_config" ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16-minmax-neonfp16arith-mlal-lane.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-6x16-minmax-neonfp16arith-mlal-lane.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", - "//third_party/fxdiv", -- "//third_party/pthreadpool", +- "//third_party/pthreadpool:pthreadpool_standalone", - ] -+ public_configs = [ ":xnnpack_public_config" ] - +- - public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } + if (!(is_android && use_order_profiling)) { + assert_no_deps = [ "//base" ] } } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- if (build_with_chromium) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16") { - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] +if (build_with_chromium) { + source_set("x8-transposec_ppc64") { + cflags = [ @@ -94740,6 +94938,25 @@ + "src/src/x8-transposec/gen/x8-transposec-2x4-scalar-int.c" + ] +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f16-qb4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f16-qb4w-gemm/gen/qd8-f16-qb4w-gemm-1x16c8-minmax-neoni8mm.c", @@ -94764,18 +94981,6 @@ - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -96132,7 +96337,7 @@ +} - if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- source_set("qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod") { - cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { @@ -96149,8 +96354,8 @@ - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-4x16c4-minmax-neondot.c", - ] + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ "//build/config/compiler:no_chromium_code" ] @@ -96185,7 +96390,7 @@ - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- source_set("qd8-f32-qc2w-gemm_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] +if (build_with_chromium) { + source_set("f16-rminmax_riscv64") { @@ -96202,8 +96407,8 @@ - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc2w-gemm/qd8-f32-qc2w-gemm-4x16c4-minmax-neondot.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -96231,8 +96436,8 @@ + configs += [ ":xnnpack_private_config" ] - if (build_with_chromium) { -- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { -- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -96242,8 +96447,8 @@ - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", - ] + public_configs = [ ":xnnpack_public_config" ] + } @@ -96290,14 +96495,14 @@ - # 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" ] +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { +- cflags = [ "-march=armv8.2-a+dotprod" ] + public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", -- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c4-minmax-neondot.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c4-minmax-neondot.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -96323,10 +96528,110 @@ } +} +- if (build_with_chromium) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +- +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] ++if (build_with_chromium) { ++ source_set("f16-vapproxgelu_riscv64") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool", +- ] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } ++ public_configs = [ ":xnnpack_public_config" ] + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arch=armv8.2-a+i8mm+fp16_standalone") { +- cflags = [ "-march=armv8.2-a+i8mm+fp16" ] ++# This is a target that cannot depend on //base. ++if (build_with_internal_optimization_guide) { ++ source_set("f16-vapproxgelu_riscv64_standalone") { ++ cflags = [ ++ ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ ] + +- sources = [ +- "src/include/xnnpack.h", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16c8-minmax-neoni8mm.c", +- "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-4x16c8-minmax-neoni8mm.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- +- public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + - if (build_with_chromium) { - source_set("qd8-f32-qc4w-gemm_arm64") { - cflags = [] -- ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/qd8-f32-qc4w-gemm/gen/qd8-f32-qc4w-gemm-1x16-minmax-neon-mlal-lane.c", @@ -96346,34 +96651,28 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++ public_configs = [ ":xnnpack_public_config" ] + +- public_configs = [ ":xnnpack_public_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("qd8-f32-qc4w-gemm_arm64_standalone") { +- cflags = [] +if (build_with_chromium) { -+ source_set("f16-vapproxgelu_riscv64") { ++ source_set("f16-vcos_riscv64") { + cflags = [ + + ] + + 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" ] - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("qd8-f32-qc4w-gemm_arm64_standalone") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] - sources = [ @@ -96402,6 +96701,18 @@ - assert_no_deps = [ "//base" ] - } - } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] ++ ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] ++ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -96411,14 +96722,14 @@ - cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vapproxgelu_riscv64_standalone") { ++ source_set("f16-vcos_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vapproxgelu/gen/f16-vapproxgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" + ] - sources = [ @@ -96496,14 +96807,14 @@ - source_set("qd8-f32-qc8w-gemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("f16-vcos_riscv64") { ++ source_set("f16-vexp_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] - asmflags = cflags @@ -96540,14 +96851,14 @@ - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vcos_riscv64_standalone") { ++ source_set("f16-vexp_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vcos/gen/f16-vcos-scalar-rational-3-2-div.c" ++ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -96611,14 +96922,14 @@ - "src/src/qd8-f32-qc8w-gemm/gen/qd8-f32-qc8w-gemm-4x16c8-minmax-neoni8mm.c", - ] +if (build_with_chromium) { -+ source_set("f16-vexp_riscv64") { ++ source_set("f16-vgelu_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -96655,14 +96966,14 @@ - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vexp_riscv64_standalone") { ++ source_set("f16-vgelu_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vexp/gen/f16-vexp-scalar-poly-3.c" ++ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" + ] - sources = [ @@ -96741,14 +97052,14 @@ - source_set("qd8-f32-qc8w-gemm_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f16-vgelu_riscv64") { ++ source_set("f16-vsin_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - sources = [ @@ -96801,14 +97112,14 @@ - cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vgelu_riscv64_standalone") { ++ source_set("f16-vsin_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vgelu/gen/f16-vgelu-scalar-rational-6-4-div.c" ++ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" + ] - sources = [ @@ -96886,14 +97197,15 @@ - source_set("qd8-f32-qc8w-igemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("f16-vsin_riscv64") { ++ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" + ] - asmflags = cflags @@ -96930,14 +97242,15 @@ - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f16-vsin_riscv64_standalone") { ++ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f16-vsin/gen/f16-vsin-scalar-rational-3-2-div.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -97001,15 +97314,14 @@ - "src/src/qd8-f32-qc8w-igemm/gen/qd8-f32-qc8w-igemm-4x16c8-minmax-neoni8mm.c", - ] +if (build_with_chromium) { -+ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-argmaxpool_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -97046,15 +97358,14 @@ - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-argmaxpool_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-rvv-u1v.c" ++ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" + ] - sources = [ @@ -97135,14 +97446,14 @@ - source_set("qd8-f32-qc8w-igemm_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-argmaxpool_riscv64") { ++ source_set("f32-avgpool_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -97208,14 +97519,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-argmaxpool_riscv64_standalone") { ++ source_set("f32-avgpool_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-argmaxpool/f32-argmaxpool-9p8x-scalar-c1.c" ++ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" + ] - deps = [ @@ -97296,14 +97607,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-avgpool_riscv64") { ++ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -97357,14 +97669,15 @@ - cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-avgpool_riscv64_standalone") { ++ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-avgpool/gen/f32-avgpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" + ] - sources = [ @@ -97409,15 +97722,14 @@ - source_set("qp8-f32-qc4w-gemm_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-conv-hwc2chw_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-conv-hwc2chw_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - sources = [ @@ -97475,15 +97787,14 @@ - configs += [ ":xnnpack_private_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") { ++ source_set("f32-conv-hwc2chw_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x2v-rvv-2x2.c" ++ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.c" + ] - deps = [ @@ -97563,14 +97874,16 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-conv-hwc2chw_riscv64") { ++ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.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" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -97625,14 +97938,16 @@ - cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-conv-hwc2chw_riscv64_standalone") { ++ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-conv-hwc2chw/f32-conv-hwc2chw-3x3s2p1c3x4-scalar-1x1.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" + ] - sources = [ @@ -97677,16 +97992,21 @@ - source_set("qp8-f32-qc8w-gemm_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-dwconv2d-chw_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-dwconv2d-chw_riscv64") { + 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/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3p1-minmax-scalar-4x1.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-1x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-3x3s2p1-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5p2-minmax-scalar-2x1-acc2.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-1x1-acc5.c", ++ "src/src/f32-dwconv2d-chw/gen/f32-dwconv2d-chw-5x5s2p2-minmax-scalar-2x1-acc2.c" + ] - sources = [ @@ -97744,16 +98064,21 @@ - configs += [ ":xnnpack_private_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") { ++ source_set("f32-dwconv2d-chw_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/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" + ] - deps = [ @@ -97821,21 +98146,22 @@ - "src/src/qp8-f32-qc8w-gemm/qp8-f32-qc8w-gemm-minmax-1x64c4-neonsme2.c", - ] +if (build_with_chromium) { -+ source_set("f32-dwconv2d-chw_riscv64") { ++ source_set("f32-dwconv_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-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-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" ] @@ -97872,21 +98198,22 @@ - cflags = [ "-march=armv8.2-a+sve+sve2" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv2d-chw_riscv64_standalone") { ++ source_set("f32-dwconv_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-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-dwconv/gen/f32-dwconv-25p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p8vc-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-minmax-rvv.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p8vc-rvv.c" + ] - sources = [ @@ -97965,22 +98292,23 @@ - source_set("qs8-dwconv_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-dwconv_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-dwconv_riscv64") { + 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" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] - sources = [ @@ -98042,22 +98370,23 @@ - configs += [ ":xnnpack_private_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") { ++ source_set("f32-dwconv_riscv64_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" ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", ++ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" + ] - deps = [ @@ -98137,23 +98466,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-dwconv_riscv64") { ++ source_set("f32-f16-vcvt_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-25p2c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-3p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-4p1c-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-minmax-scalar-acc2.c", -+ "src/src/f32-dwconv/gen/f32-dwconv-9p1c-scalar-acc2.c" ++ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -98208,23 +98528,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-dwconv_riscv64_standalone") { ++ source_set("f32-f16-vcvt_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/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" + ] - sources = [ @@ -98302,14 +98613,16 @@ - source_set("qs8-qc4w-gemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-f16-vcvt_riscv64") { ++ source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" + ] - asmflags = cflags @@ -98346,14 +98659,16 @@ - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-f16-vcvt_riscv64_standalone") { ++ source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-f16-vcvt/gen/f32-f16-vcvt-scalar-fabsf-u2.c" ++ "src/src/f32-gemm/gen/f32-gemm-1x4v-minmax-rvv.c", ++ "src/src/f32-gemm/gen/f32-gemm-7x4v-minmax-rvv.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -98417,16 +98732,21 @@ - "src/src/qs8-qc4w-gemm/gen/qs8-qc4w-gemm-3x4-minmax-fp32-scalar-fmagic.c", - ] +if (build_with_chromium) { -+ source_set("f32-gemm_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-gemm_riscv64") { + 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/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" ] @@ -98463,16 +98783,21 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-gemm_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/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", ++ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" + ] - sources = [ @@ -98596,21 +98921,14 @@ - } - } +if (build_with_chromium) { -+ source_set("f32-gemm_riscv64") { ++ source_set("f32-ibilinear-chw_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" ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - if (build_with_chromium) { @@ -98687,21 +99005,14 @@ - } +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-gemm_riscv64_standalone") { ++ source_set("f32-ibilinear-chw_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-1x4-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x2-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-minmax-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-relu-scalar.c", -+ "src/src/f32-gemm/gen/f32-gemm-4x4-scalar.c" ++ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" + ] - if (build_with_chromium) { @@ -98759,14 +99070,14 @@ - source_set("qs8-qc8w-gemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-ibilinear-chw_riscv64") { ++ source_set("f32-ibilinear_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -98823,14 +99134,14 @@ - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear-chw_riscv64_standalone") { ++ source_set("f32-ibilinear_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear-chw/gen/f32-ibilinear-chw-scalar-p4.c" ++ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" + ] - sources = [ @@ -98900,14 +99211,16 @@ - } - } +if (build_with_chromium) { -+ source_set("f32-ibilinear_riscv64") { ++ source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" + ] - if (build_with_chromium) { @@ -98959,14 +99272,16 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-ibilinear_riscv64_standalone") { ++ source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-ibilinear/gen/f32-ibilinear-scalar-u2.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", ++ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" + ] - sources = [ @@ -99047,16 +99362,21 @@ - source_set("qs8-qc8w-igemm_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-igemm_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-igemm_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] - sources = [ @@ -99133,16 +99453,21 @@ - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-igemm_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-igemm/gen/f32-igemm-1x4v-minmax-rvv.c", -+ "src/src/f32-igemm/gen/f32-igemm-7x4v-minmax-rvv.c" ++ "src/src/f32-igemm/gen/f32-igemm-1x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-1x4-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x2-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-minmax-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-relu-scalar.c", ++ "src/src/f32-igemm/gen/f32-igemm-4x4-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -99214,21 +99539,15 @@ - "src/src/qs8-qc8w-igemm/gen/qs8-qc8w-igemm-4x16c8-minmax-fp32-neoni8mm.c", - ] +if (build_with_chromium) { -+ source_set("f32-igemm_riscv64") { ++ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + 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-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -99265,21 +99584,15 @@ - cflags = [ "-march=armv8.2-a+i8mm+fp16" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-igemm_riscv64_standalone") { ++ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + 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-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" + ] - sources = [ @@ -99358,15 +99671,14 @@ - source_set("qs8-qc8w-igemm_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-maxpool_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-maxpool_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - sources = [ @@ -99428,15 +99740,14 @@ - configs += [ ":xnnpack_private_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") { ++ source_set("f32-maxpool_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-rvv-u2v.c" ++ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" + ] - deps = [ @@ -99516,14 +99827,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-maxpool_riscv64") { ++ source_set("f32-qc4w-gemm_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -99578,14 +99890,15 @@ - cflags = [ "-march=armv8.2-a+dotprod" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-maxpool_riscv64_standalone") { ++ source_set("f32-qc4w-gemm_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-maxpool/gen/f32-maxpool-9p-minmax-scalar-u1.c" ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc4w-gemm/gen/f32-qc4w-gemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -99628,15 +99941,15 @@ - source_set("qs8-rsum_arch=armv8.2-a+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-qc4w-gemm_riscv64") { ++ source_set("f32-qc8w-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" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - sources = [ @@ -99693,15 +100006,15 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc4w-gemm_riscv64_standalone") { ++ source_set("f32-qc8w-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" ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", ++ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" + ] - deps = [ @@ -99784,15 +100097,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-qc8w-gemm_riscv64") { ++ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -99849,15 +100162,15 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qc8w-gemm_riscv64_standalone") { ++ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-1x4-minmax-scalar.c", -+ "src/src/f32-qc8w-gemm/gen/f32-qc8w-gemm-4x4-minmax-scalar.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" + ] - sources = [ @@ -99953,15 +100266,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-qs8-vcvt_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -100016,15 +100329,15 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-qs8-vcvt_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-rvv-u2v.c" ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" + ] - sources = [ @@ -100068,15 +100381,15 @@ - source_set("qs8-vlrelu_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-qs8-vcvt_riscv64") { ++ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { + 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/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" + ] - sources = [ @@ -100134,15 +100447,15 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qs8-vcvt_riscv64_standalone") { ++ source_set("f32-qu8-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-scalar-imagic-u4.c", -+ "src/src/f32-qs8-vcvt/gen/f32-qs8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" + ] - deps = [ @@ -100223,15 +100536,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-qu8-vcvt_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -100286,15 +100599,15 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-qu8-vcvt_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-rvv-u2v.c" ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", ++ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" + ] - sources = [ @@ -100337,15 +100650,15 @@ - source_set("qs8-vprelu_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-qu8-vcvt_riscv64") { ++ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" + ] - sources = [ @@ -100401,15 +100714,15 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-qu8-vcvt_riscv64_standalone") { ++ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-imagic-u4.c", -+ "src/src/f32-qu8-vcvt/gen/f32-qu8-vcvt-scalar-lrintf-u4.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" + ] - deps = [ @@ -100476,15 +100789,14 @@ - "src/src/qs8-vrpreluc/gen/qs8-vrpreluc-scalar-u8.c", - ] +if (build_with_chromium) { -+ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-raddstoreexpminusmax_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - configs -= [ "//build/config/compiler:chromium_code" ] @@ -100521,15 +100833,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-raddstoreexpminusmax_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-rvv-rr2-p6-u4v.c" ++ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" + ] - sources = [ @@ -100606,14 +100917,15 @@ - source_set("qu8-dwconv_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-raddstoreexpminusmax_riscv64") { ++ source_set("f32-rdminmax_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" + ] - sources = [ @@ -100675,14 +100987,15 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-raddstoreexpminusmax_riscv64_standalone") { ++ source_set("f32-rdminmax_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-raddstoreexpminusmax/gen/f32-raddstoreexpminusmax-scalar-rr2-p5-u4-acc2.c" ++ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", ++ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" + ] - deps = [ @@ -100745,15 +101058,14 @@ - source_set("qu8-gemm_arch=armv8.2-a+fp16+dotprod") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-rdminmax_riscv64") { ++ source_set("f32-rdsum2_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" + ] - asmflags = cflags @@ -100792,15 +101104,14 @@ - ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdminmax_riscv64_standalone") { ++ source_set("f32-rdsum2_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdminmax/gen/f32-rdmax-2p2x-scalar-u2.c", -+ "src/src/f32-rdminmax/gen/f32-rdmin-2p2x-scalar-u2.c" ++ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -100883,14 +101194,15 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-rdsum2_riscv64") { ++ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -100952,14 +101264,15 @@ - asmflags = cflags +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum2_riscv64_standalone") { ++ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum2/gen/f32-rdsum2-7p7x-minmax-scalar.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" + ] - sources = [ @@ -101005,15 +101318,14 @@ - source_set("qu8-igemm_arch=armv8.2-a+fp16+dotprod_standalone") { - cflags = [ "-march=armv8.2-a+fp16+dotprod" ] +if (build_with_chromium) { -+ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-rdsum_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] + + configs -= [ "//build/config/compiler:chromium_code" ] @@ -101064,15 +101376,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-rdsum_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-rvv-u4v.c" ++ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" + ] - sources = [ @@ -101175,14 +101486,17 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-rdsum_riscv64") { ++ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-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" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -101238,14 +101552,17 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rdsum_riscv64_standalone") { ++ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rdsum/gen/f32-rdsum-7p7x-minmax-scalar.c" ++ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" + ] - sources = [ @@ -101315,17 +101632,16 @@ - } - } +if (build_with_chromium) { -+ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-rminmax_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - if (build_with_chromium) { @@ -101374,17 +101690,16 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-rminmax_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rminmax/gen/f32-rmax-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rmin-rvv-u8v.c", -+ "src/src/f32-rminmax/gen/f32-rminmax-rvv-u8v.c" ++ "src/src/f32-rminmax/gen/f32-rmax-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rmin-scalar-u4-acc4.c", ++ "src/src/f32-rminmax/gen/f32-rminmax-scalar-u4-acc4.c" + ] - sources = [ @@ -101462,16 +101777,14 @@ - source_set("qu8-vaddc_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-rminmax_riscv64") { ++ source_set("f32-rsum2_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" ++ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" + ] - sources = [ @@ -101531,16 +101844,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rminmax_riscv64_standalone") { ++ source_set("f32-rsum2_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/f32-rsum2/gen/f32-rsum2-scalar-u1.c" + ] - deps = [ @@ -101621,14 +101932,14 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-rsum2_riscv64") { ++ source_set("f32-rsum_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -101683,14 +101994,14 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum2_riscv64_standalone") { ++ source_set("f32-rsum_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum2/gen/f32-rsum2-scalar-u1.c" ++ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" + ] - sources = [ @@ -101734,14 +102045,17 @@ - source_set("qu8-vmul_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-rsum_riscv64") { ++ source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" + ] - sources = [ @@ -101799,14 +102113,17 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-rsum_riscv64_standalone") { ++ source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-rsum/gen/f32-rsum-scalar-u4-acc4.c" ++ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", ++ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" + ] - deps = [ @@ -101886,17 +102203,16 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-spmm_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-spmm_riscv64") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -101950,17 +102266,16 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-spmm_riscv64_standalone") { + cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" ++ + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-4vx4-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx1-minmax-rvv.c", -+ "src/src/f32-spmm/gen/f32-spmm-8vx2-minmax-rvv.c" ++ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", ++ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" + ] - sources = [ @@ -102003,16 +102318,14 @@ - source_set("qu8-vpreluc_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-spmm_riscv64") { ++ source_set("f32-vapproxgelu_riscv64") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] - sources = [ @@ -102068,16 +102381,14 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-spmm_riscv64_standalone") { ++ source_set("f32-vapproxgelu_riscv64_standalone") { + cflags = [ + + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-spmm/gen/f32-spmm-8x1-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x2-minmax-scalar.c", -+ "src/src/f32-spmm/gen/f32-spmm-8x4-minmax-scalar.c" ++ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" + ] - deps = [ @@ -102158,14 +102469,30 @@ - "//third_party/pthreadpool", - ] +if (build_with_chromium) { -+ source_set("f32-vapproxgelu_riscv64") { ++ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" + ] - public_configs = [ ":xnnpack_public_config" ] @@ -102221,14 +102548,30 @@ - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vapproxgelu_riscv64_standalone") { ++ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { + cflags = [ -+ ++ "-mabi=lp64d", ++ "-march=rv64gcv" + ] + + sources = [ + "src/include/xnnpack.h", -+ "src/src/f32-vapproxgelu/gen/f32-vapproxgelu-scalar-rational-12-10-div.c" ++ "src/src/f32-vbinary/gen/f32-vadd-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmax-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmin-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vminc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmul-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsub-rvv-u8v.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-rvv-u8v.c" + ] - sources = [ @@ -102273,30 +102616,32 @@ - source_set("s8-ibilinear_arm64_standalone") { - cflags = [] +if (build_with_chromium) { -+ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d") { ++ source_set("f32-vbinary_riscv64") { + 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/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - sources = [ @@ -102355,30 +102700,32 @@ - configs += [ ":xnnpack_private_config" ] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_arch=rv64gcv-abi=lp64d_standalone") { ++ source_set("f32-vbinary_riscv64_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/f32-vbinary/gen/f32-vadd-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", ++ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", ++ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" + ] - deps = [ @@ -102440,40 +102787,7 @@ - if (build_with_chromium) { - source_set("s8-rdminmax_arm64") { - cflags = [] -+if (build_with_chromium) { -+ source_set("f32-vbinary_riscv64") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - sources = [ - "src/include/xnnpack.h", - "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", @@ -102493,129 +102807,6 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- public_configs = [ ":xnnpack_public_config" ] -- } -+ public_configs = [ ":xnnpack_public_config" ] - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("s8-rdminmax_arm64_standalone") { -- cflags = [] -+# This is a target that cannot depend on //base. -+if (build_with_internal_optimization_guide) { -+ source_set("f32-vbinary_riscv64_standalone") { -+ cflags = [ -+ -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vbinary/gen/f32-vadd-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vaddc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vdiv-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vmax-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmaxc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmin-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vminc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmul-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vmulc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vprelu-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrdivc-scalar-u2.c", -+ "src/src/f32-vbinary/gen/f32-vrpreluc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vrsubc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiff-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsqrdiffc-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsub-scalar-u8.c", -+ "src/src/f32-vbinary/gen/f32-vsubc-scalar-u8.c" -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", -- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", -- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool:pthreadpool_standalone", -- ] -- -- public_configs = [ ":xnnpack_public_config" ] -- -- if (!(is_android && use_order_profiling)) { -- assert_no_deps = [ "//base" ] -- } -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (build_with_chromium) { -- source_set("s8-rminmax_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool:pthreadpool_standalone", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", -- ] -- -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] -- -- deps = [ -- "//third_party/cpuinfo", -- "//third_party/fp16", -- "//third_party/fxdiv", -- "//third_party/pthreadpool", -- ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && 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 = [] +if (build_with_chromium) { + source_set("f32-vclamp_riscv64") { + cflags = [ @@ -102627,14 +102818,31 @@ + "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" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-rdminmax_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", -- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-neon-u32.c", +- "src/src/s8-rdminmax/gen/s8-rdmax-2p2x-scalar-u2.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-neon-u32.c", +- "src/src/s8-rdminmax/gen/s8-rdmin-2p2x-scalar-u2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -102655,35 +102863,13 @@ - assert_no_deps = [ "//base" ] - } - } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - -- if (build_with_chromium) { -- source_set("s8-vclamp_arm64") { -- cflags = [] -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] - -- sources = [ -- "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", -- ] + public_configs = [ ":xnnpack_public_config" ] -+ } + } +} -- configs -= [ "//build/config/compiler:chromium_code" ] -- configs += [ "//build/config/compiler:no_chromium_code" ] -- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -- configs += [ ":xnnpack_private_config" ] +- if (build_with_chromium) { +- source_set("s8-rminmax_arm64") { +- cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { + source_set("f32-vclamp_riscv64_standalone") { @@ -102696,6 +102882,21 @@ + "src/src/f32-vclamp/gen/f32-vclamp-scalar.c" + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- - deps = [ - "//third_party/cpuinfo", - "//third_party/fp16", @@ -102719,14 +102920,18 @@ - # This is a target that cannot depend on //base. - if (build_with_internal_optimization_guide) { -- source_set("s8-vclamp_arm64_standalone") { +- source_set("s8-rminmax_arm64_standalone") { - cflags = [] + public_configs = [ ":xnnpack_public_config" ] - sources = [ - "src/include/xnnpack.h", -- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", -- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- "src/src/s8-rminmax/gen/s8-rmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmax-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rmin-scalar-u2-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-neon-u32-acc2.c", +- "src/src/s8-rminmax/gen/s8-rminmax-scalar-u2-acc2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -102753,56 +102958,13 @@ +} - if (build_with_chromium) { -- source_set("subgraph_arm64") { +- source_set("s8-vclamp_arm64") { - cflags = [] -+if (build_with_chromium) { -+ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { -+ cflags = [ -+ "-mabi=lp64d", -+ "-march=rv64gcv" -+ ] -+ -+ sources = [ -+ "src/include/xnnpack.h", -+ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" -+ ] -+ -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] - +- - sources = [ - "src/include/xnnpack.h", -- "src/src/subgraph/argmax-pooling-2d.c", -- "src/src/subgraph/average-pooling-2d.c", -- "src/src/subgraph/batch-matrix-multiply.c", -- "src/src/subgraph/binary.c", -- "src/src/subgraph/concatenate.c", -- "src/src/subgraph/convolution-2d.c", -- "src/src/subgraph/copy.c", -- "src/src/subgraph/deconvolution-2d.c", -- "src/src/subgraph/deprecated.c", -- "src/src/subgraph/depth-to-space-2d.c", -- "src/src/subgraph/depthwise-convolution-2d.c", -- "src/src/subgraph/even-split.c", -- "src/src/subgraph/fully-connected-sparse.c", -- "src/src/subgraph/fully-connected.c", -- "src/src/subgraph/max-pooling-2d.c", -- "src/src/subgraph/pack-lh.c", -- "src/src/subgraph/reshape-helpers.c", -- "src/src/subgraph/rope.c", -- "src/src/subgraph/softmax.c", -- "src/src/subgraph/space-to-depth-2d.c", -- "src/src/subgraph/static-constant-pad.c", -- "src/src/subgraph/static-reduce.c", -- "src/src/subgraph/static-resize-bilinear-2d.c", -- "src/src/subgraph/static-slice.c", -- "src/src/subgraph/static-transpose.c", -- "src/src/subgraph/subgraph-utils.c", -- "src/src/subgraph/unary.c", -- "src/src/subgraph/unpooling-2d.c", -- "src/src/subgraph/validation.c", +- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -102816,6 +102978,30 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] ++if (build_with_chromium) { ++ source_set("f32-vcmul_arch=rv64gcv-abi=lp64d") { ++ cflags = [ ++ "-mabi=lp64d", ++ "-march=rv64gcv" ++ ] ++ ++ sources = [ ++ "src/include/xnnpack.h", ++ "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.c" ++ ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("s8-vclamp_arm64_standalone") { +- cflags = [] + deps = [ + "//third_party/cpuinfo", + "//third_party/fp16", @@ -102823,15 +103009,36 @@ + "//third_party/pthreadpool", + ] +- sources = [ +- "src/include/xnnpack.h", +- "src/src/s8-vclamp/s8-vclamp-neon-u64.c", +- "src/src/s8-vclamp/s8-vclamp-scalar-u4.c", +- ] +- +- configs -= [ "//build/config/compiler:chromium_code" ] +- configs += [ "//build/config/compiler:no_chromium_code" ] +- configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] +- configs += [ ":xnnpack_private_config" ] +- +- deps = [ +- "//third_party/cpuinfo", +- "//third_party/fp16", +- "//third_party/fxdiv", +- "//third_party/pthreadpool:pthreadpool_standalone", +- ] +- - public_configs = [ ":xnnpack_public_config" ] +- +- if (!(is_android && use_order_profiling)) { +- assert_no_deps = [ "//base" ] +- } - } + public_configs = [ ":xnnpack_public_config" ] } +} -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("subgraph_arm64_standalone") { +- if (build_with_chromium) { +- source_set("subgraph_arm64") { - cflags = [] +# This is a target that cannot depend on //base. +if (build_with_internal_optimization_guide) { @@ -102846,6 +103053,71 @@ + "src/src/f32-vcmul/gen/f32-vcmul-rvv-u2v.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", +- ] ++ configs -= [ "//build/config/compiler:chromium_code" ] ++ configs += [ "//build/config/compiler:no_chromium_code" ] ++ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] ++ configs += [ ":xnnpack_private_config" ] + +- public_configs = [ ":xnnpack_public_config" ] +- } +- } ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool:pthreadpool_standalone", ++ ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("subgraph_arm64_standalone") { +- cflags = [] ++ public_configs = [ ":xnnpack_public_config" ] + - sources = [ - "src/include/xnnpack.h", - "src/src/subgraph/argmax-pooling-2d.c", @@ -102896,23 +103168,16 @@ - if (!(is_android && use_order_profiling)) { - assert_no_deps = [ "//base" ] - } -- } -- } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] ++ if (!(is_android && use_order_profiling)) { ++ assert_no_deps = [ "//base" ] + } + } ++} - if (build_with_chromium) { - source_set("tables_arm64") { - cflags = [] -+ 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", @@ -102937,19 +103202,6 @@ - "//third_party/fxdiv", - "//third_party/pthreadpool", - ] -+ public_configs = [ ":xnnpack_public_config" ] - -- public_configs = [ ":xnnpack_public_config" ] -+ if (!(is_android && use_order_profiling)) { -+ assert_no_deps = [ "//base" ] - } - } -+} - -- # This is a target that cannot depend on //base. -- if (build_with_internal_optimization_guide) { -- source_set("tables_arm64_standalone") { -- cflags = [] +if (build_with_chromium) { + source_set("f32-vcmul_riscv64") { + cflags = [ @@ -102961,6 +103213,25 @@ + "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" ] + +- # This is a target that cannot depend on //base. +- if (build_with_internal_optimization_guide) { +- source_set("tables_arm64_standalone") { +- cflags = [] ++ deps = [ ++ "//third_party/cpuinfo", ++ "//third_party/fp16", ++ "//third_party/fxdiv", ++ "//third_party/pthreadpool", ++ ] + - sources = [ - "src/include/xnnpack.h", - "src/src/tables/exp2-k-over-2048.c", @@ -102992,18 +103263,6 @@ - assert_no_deps = [ "//base" ] - } - } -+ configs -= [ "//build/config/compiler:chromium_code" ] -+ configs += [ "//build/config/compiler:no_chromium_code" ] -+ configs += [ "//build/config/sanitizers:cfi_icall_generalize_pointers" ] -+ configs += [ ":xnnpack_private_config" ] -+ -+ deps = [ -+ "//third_party/cpuinfo", -+ "//third_party/fp16", -+ "//third_party/fxdiv", -+ "//third_party/pthreadpool", -+ ] -+ + public_configs = [ ":xnnpack_public_config" ] } +} @@ -103590,6 +103849,9 @@ - - sources = [ - "src/include/xnnpack.h", +- "src/src/x16-pack-lh/x16-packlh-igemm-neonsme.c", +- "src/src/x16-pack-lh/x16-packlh-igemm-neonsme2.c", +- "src/src/x16-pack-lh/x16-packlh-neonsme.c", - "src/src/x16-pack-lh/x16-packlh-neonsme2.c", - ] - @@ -103636,6 +103898,9 @@ - sources = [ - "src/include/xnnpack.h", +- "src/src/x16-pack-lh/x16-packlh-igemm-neonsme.c", +- "src/src/x16-pack-lh/x16-packlh-igemm-neonsme2.c", +- "src/src/x16-pack-lh/x16-packlh-neonsme.c", - "src/src/x16-pack-lh/x16-packlh-neonsme2.c", - ] - @@ -104040,6 +104305,7 @@ - sources = [ - "src/include/xnnpack.h", - "src/src/x32-pack-lh/x32-packlh-neonsme.c", +- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", - ] + public_configs = [ ":xnnpack_public_config" ] + } @@ -104091,6 +104357,7 @@ - sources = [ - "src/include/xnnpack.h", - "src/src/x32-pack-lh/x32-packlh-neonsme.c", +- "src/src/x32-pack-lh/x32-packlh-neonsme2.c", - ] - - configs -= [ "//build/config/compiler:chromium_code" ] @@ -105849,6 +106116,8 @@ + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -105935,6 +106204,8 @@ + "src/src/operators/convolution-nhwc.c", + "src/src/operators/deconvolution-nhwc.c", + "src/src/operators/dynamic-fully-connected-nc.c", ++ "src/src/operators/fingerprint_cache.c", ++ "src/src/operators/fingerprint_id.c", + "src/src/operators/fully-connected-nc.c", + "src/src/operators/max-pooling-nhwc.c", + "src/src/operators/pack-lh.c", @@ -112001,6 +112272,8 @@ - "src/src/operators/convolution-nhwc.c", - "src/src/operators/deconvolution-nhwc.c", - "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", - "src/src/operators/fully-connected-nc.c", - "src/src/operators/max-pooling-nhwc.c", - "src/src/operators/pack-lh.c", @@ -112058,6 +112331,8 @@ - "src/src/operators/convolution-nhwc.c", - "src/src/operators/deconvolution-nhwc.c", - "src/src/operators/dynamic-fully-connected-nc.c", +- "src/src/operators/fingerprint_cache.c", +- "src/src/operators/fingerprint_id.c", - "src/src/operators/fully-connected-nc.c", - "src/src/operators/max-pooling-nhwc.c", - "src/src/operators/pack-lh.c", diff --git a/ppc-fedora-fix-clang-selection.patch b/ppc-fedora-fix-clang-selection.patch deleted file mode 100644 index 6a1cd23..0000000 --- a/ppc-fedora-fix-clang-selection.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- chromium-143.0.7499.17/build/config/BUILDCONFIG.gn 2025/11/10 11:36:45 1.1 -+++ chromium-143.0.7499.17/build/config/BUILDCONFIG.gn 2025/11/10 11:37:11 -@@ -138,7 +138,6 @@ - # Set to true when compiling with the Clang compiler. - is_clang = current_os != "linux" || - (current_cpu != "s390x" && current_cpu != "s390" && -- current_cpu != "ppc64" && current_cpu != "ppc" && - current_cpu != "mips" && current_cpu != "mips64") - - # Allows the path to a custom target toolchain to be injected as a single