High-efficiency floating-point neural network inference operators for mobile, server, and Web
This report summarizes scanner evidence for google/XNNPACK, a C project with 2,488 GitHub stars. SynthScan examined 2,633,800 lines of code across 9964 source files, recording 10684 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 4.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 10576 finding(s).
Are imports declared and package/API names verified? 61 finding(s).
Are wrappers, guards, and repeated structures necessary? 70 finding(s).
Which changes need focused human review? 10684 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 10684 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bench/utils.h | 1 | // Copyright 2019-2025 Google LLC | COMMENT |
| LOW | bench/gemm.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | bench/dconv.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | bench/f16-gemm-minmax.c | 1 | // clang-format off | COMMENT |
| LOW | bench/packw-benchmark.h | 1 | // Copyright 2023-2025 Google LLC | COMMENT |
| LOW | bench/dwconv.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | bench/packq-benchmark.h | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | bench/gemm-benchmark.h | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | bench/conv.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | bench/subgraph/simple_scheduler.h | 1 | // Copyright 2025 Google LLC | COMMENT |
| LOW | tools/generate-ibilinear-test.py | 281 | raise ValueError("expected a list of micro-kernels in the spec") | COMMENT |
| LOW | tools/generate-reduce-discontiguous-test.py | 441 | // Copyright 2024 Google LLC | COMMENT |
| LOW | tools/generate-argmaxpool-test.py | 661 | // This source code is licensed under the BSD-style license found in the | COMMENT |
| LOW | tools/generate-vunary-test.py | 281 | COMMENT | |
| LOW | tools/generate-conv-hwc-test.py | 481 | with codecs.open(options.spec, "r", encoding="utf-8") as spec_file: | COMMENT |
| LOW | tools/generate-ibilinear-chw-test.py | 201 | with codecs.open(options.spec, "r", encoding="utf-8") as spec_file: | COMMENT |
| LOW | tools/generate-reduce-test.py | 241 | }[options.tester] | COMMENT |
| LOW | tools/generate-dwconv-test.py | 261 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | tools/generate-gemm-test.py | 1001 | // All rights reserved. | COMMENT |
| LOW | tools/generate-gemm-test.py | 1021 | {xnnpack_gemm_header} | COMMENT |
| LOW | tools/generate-gemm-test.py | 1041 | // This source code is licensed under the BSD-style license found in the | COMMENT |
| LOW | test/maxpool-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/conv-hwc2chw-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/unary-ops.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/unary-ops.h | 21 | #include "src/xnnpack/common.h" | COMMENT |
| LOW | test/unpool-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/lut-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/conv-hwc-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/vcmul-microkernel-tester.h | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | test/f16-conv-hwc2chw.yaml | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | test/packq-microkernel-tester.h | 1 | // Copyright 2024 Google LLC | COMMENT |
| LOW | test/replicable_random_device.h | 1 | // Copyright 2024 Google LLC | COMMENT |
| LOW | test/dwconv-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/dwconv2d-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/vunary-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/vunary-microkernel-tester.h | 21 | COMMENT | |
| LOW | test/raddstoreexpminusmax-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/ibilinear-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/packw-microkernel-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/pack-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/vmulcaddc-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/packb-microkernel-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/argmaxpool-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/raddexpminusmax-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/f32-argmaxpool.yaml | 1 | # Copyright 2019 Google LLC | COMMENT |
| LOW | test/gemm-microkernel-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/vbinary-microkernel-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/operators/transpose-normalization-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/operators/resize-bilinear-operator-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/operators/max-pooling-operator-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/operators/slice-normalization-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/operators/unpooling-operator-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/operators/transpose-operator-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/operators/slice-operator-tester.h | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | test/operators/depth-to-space-operator-tester.h | 1 | // Copyright 2020 Google LLC | COMMENT |
| LOW | test/operators/argmax-pooling-operator-tester.h | 1 | // Copyright 2019 Google LLC | COMMENT |
| LOW | test/operators/rope-operator-tester.h | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | test/operators/fully-connected-operator-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| LOW | test/operators/fully-connected-operator-tester.h | 21 | #include <memory> | COMMENT |
| LOW | test/operators/deconvolution-operator-tester.h | 1 | // Copyright (c) Facebook, Inc. and its affiliates. | COMMENT |
| 10430 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/generate-dwconv2d-chw-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-raddstoreexpminusmax-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-ibilinear-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-raddexpminusmax-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-reduce-discontiguous-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-argmaxpool-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-conv-hwc2chw-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-conv-hwc-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-ibilinear-chw-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-reduce-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | tools/generate-lut-test.py | 0 | \ // clang-format off // copyright 2021 google llc // // this source code is licensed under the bsd-style license found | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | int32x4_t c_{i}_{j+0} = vdupq_n_s32(0); int32x4_t c_{i}_{j+2} = vdupq_n_s32(0); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | int32x4_t c_{i}_{j+0} = vdupq_n_s32(0); int32x4_t c_{i}_{j+2} = vdupq_n_s32(0); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | int32x4_t c_{i}_{j+0} = vdupq_n_s32(0); int32x4_t c_{i}_{j+2} = vdupq_n_s32(0); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | c_{i}_{j+0} = vmmlaq_s32(c_{i}_{j+0}, a_{i}_{k}, b_{k}_{j+0}); c_{i}_{j+2} = vmmlaq_s32(c_{i}_{j+2}, a_{i}_{k}, b_{k}_{j | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | c_{i}_{j+0} = vmmlaq_s32(c_{i}_{j+0}, a_{i}_{k}, b_{k}_{j+0}); c_{i}_{j+2} = vmmlaq_s32(c_{i}_{j+2}, a_{i}_{k}, b_{k}_{j | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | c_{i}_{j+0} = vmmlaq_s32(c_{i}_{j+0}, a_{i}_{k}, b_{k}_{j+0}); c_{i}_{j+2} = vmmlaq_s32(c_{i}_{j+2}, a_{i}_{k}, b_{k}_{j | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | c_{i+0}_{j} = vaddq_s32(c_{i+0}_{j}, vld1q_s32({self.c_in_ptr(i+0, j)})); c_{i+1}_{j} = vaddq_s32(c_{i+1}_{j}, vld1q_s32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | c_{i+0}_{j} = vaddq_s32(c_{i+0}_{j}, vld1q_s32({self.c_in_ptr(i+0, j)})); c_{i+1}_{j} = vaddq_s32(c_{i+1}_{j}, vld1q_s32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | c_{i+0}_{j} = vaddq_s32(c_{i+0}_{j}, vld1q_s32({self.c_in_ptr(i+0, j)})); c_{i+1}_{j} = vaddq_s32(c_{i+1}_{j}, vld1q_s32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | vst1q_s32({self.c_out_ptr(i+1, j)}, c_{i+1}_{j}); vst1q_s32({self.c_out_ptr(i+0, j)}, c_{i+0}_{j}); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | vst1q_s32({self.c_out_ptr(i+1, j)}, c_{i+1}_{j}); vst1q_s32({self.c_out_ptr(i+0, j)}, c_{i+0}_{j}); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | vst1q_s32({self.c_out_ptr(i+1, j)}, c_{i+1}_{j}); vst1q_s32({self.c_out_ptr(i+0, j)}, c_{i+0}_{j}); | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int4_int32.py | 0 | int32x4_t c_{i+1}_{j} = vcombine_s32(vget_high_s32({c0}), vget_high_s32({c2})); c_{i+0}_{j} = vcombine_s32(vget_low_s32( | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int2_int32.py | 0 | int32x4_t c_{i+1}_{j} = vcombine_s32(vget_high_s32({c0}), vget_high_s32({c2})); c_{i+0}_{j} = vcombine_s32(vget_low_s32( | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_int8_int8_int32.py | 0 | int32x4_t c_{i+1}_{j} = vcombine_s32(vget_high_s32({c0}), vget_high_s32({c2})); c_{i+0}_{j} = vcombine_s32(vget_low_s32( | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_fp32_k4.py | 0 | specializations for fp32 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_fp32.py | 0 | specializations for fp32 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_fp32_k2.py | 0 | specializations for fp32 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_bf16_bf16_fp32.py | 0 | specializations for fp32 arm dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_fp32.py | 0 | specializations for fp32 arm dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm_bf16_bf16_fp32_k2.py | 0 | specializations for fp32 arm dot kernel generators. | STRING |
| HIGH | …npack/kernels/dot/generator/x86_int8_int8_int32_k16.py | 0 | specializations for int8 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_int8_int8_int32.py | 0 | specializations for int8 x86 dot kernel generators. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_int8_int8_int32_k1.py | 0 | specializations for int8 x86 dot kernel generators. | STRING |
| HIGH | …npack/kernels/dot/generator/x86_int8_int8_int32_k16.py | 0 | namespace { ynn_intrinsic __m512i _mm512_hadd_epi32(__m512i a, __m512i b) { a = _mm512_add_epi32(a, _mm512_shuffle_epi32 | STRING |
| HIGH | …pack/kernels/dot/generator/x86_uint8_int8_int32_k16.py | 0 | namespace { ynn_intrinsic __m512i _mm512_hadd_epi32(__m512i a, __m512i b) { a = _mm512_add_epi32(a, _mm512_shuffle_epi32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86_uint8_int4_int32.py | 0 | namespace { ynn_intrinsic __m512i _mm512_hadd_epi32(__m512i a, __m512i b) { a = _mm512_add_epi32(a, _mm512_shuffle_epi32 | STRING |
| HIGH | ynnpack/kernels/dot/generator/arm.py | 0 | base class for x86 dot kernel generators. handles accumulating c tiles to the output. | STRING |
| HIGH | ynnpack/kernels/dot/generator/wasm.py | 0 | base class for x86 dot kernel generators. handles accumulating c tiles to the output. | STRING |
| HIGH | ynnpack/kernels/dot/generator/x86.py | 0 | base class for x86 dot kernel generators. handles accumulating c tiles to the output. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate-raddstoreexpminusmax-test.py | 9 | CODE | |
| LOW | tools/generate-raddexpminusmax-test.py | 9 | CODE | |
| LOW | tools/generate-vbinary-test.py | 8 | CODE | |
| LOW | tools/generate-vbinary-test.py | 9 | CODE | |
| LOW | tools/generate-vbinary-test.py | 11 | CODE | |
| LOW | tools/generate-vbinary-test.py | 13 | CODE | |
| LOW | tools/generate-reduce-discontiguous-test.py | 9 | CODE | |
| LOW | tools/xngen.py | 11 | CODE | |
| LOW | tools/generate-argmaxpool-test.py | 9 | CODE | |
| LOW | tools/generate-reduce-test.py | 9 | CODE | |
| LOW | tools/generate-lut-test.py | 9 | CODE | |
| LOW | gemm_compiler/generate_f32_gemm_microkernels.py | 8 | CODE | |
| LOW | gemm_compiler/generate.py | 8 | CODE | |
| LOW | scripts/generate-build-identifier.py | 13 | CODE | |
| LOW | scripts/generate-build-identifier.py | 14 | CODE | |
| LOW | ynnpack/kernels/ternary/convert.py | 4 | CODE | |
| LOW | ynnpack/kernels/ternary/generator.py | 14 | CODE | |
| LOW | ynnpack/kernels/ternary/generator.py | 15 | CODE | |
| LOW | ynnpack/kernels/ternary/kernels.py | 5 | CODE | |
| LOW | ynnpack/kernels/unary/tanh.py | 10 | CODE | |
| LOW | ynnpack/kernels/unary/trig.py | 15 | CODE | |
| LOW | ynnpack/kernels/unary/log.py | 5 | CODE | |
| LOW | ynnpack/kernels/unary/convert.py | 4 | CODE | |
| LOW | ynnpack/kernels/unary/erf.py | 5 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 14 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 15 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 16 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 17 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 18 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 19 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 20 | CODE | |
| LOW | ynnpack/kernels/unary/generator.py | 21 | CODE | |
| LOW | ynnpack/kernels/unary/kernels.py | 3 | CODE | |
| LOW | ynnpack/kernels/unary/kernels.py | 7 | CODE | |
| LOW | ynnpack/kernels/unary/sigmoid.py | 5 | CODE | |
| LOW | ynnpack/kernels/unary/exp.py | 5 | CODE | |
| LOW | ynnpack/kernels/elementwise/hexagon.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/hexagon.py | 5 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler_test.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 11 | CODE | |
| LOW | ynnpack/kernels/elementwise/rules.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/arm.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/arm.py | 5 | CODE | |
| LOW | ynnpack/kernels/elementwise/generator.py | 7 | CODE | |
| LOW | ynnpack/kernels/elementwise/generator.py | 8 | CODE | |
| LOW | ynnpack/kernels/elementwise/generator.py | 9 | CODE | |
| LOW | ynnpack/kernels/elementwise/generator.py | 10 | CODE | |
| LOW | ynnpack/kernels/elementwise/wasm.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/wasm.py | 5 | CODE | |
| LOW | ynnpack/kernels/elementwise/x86.py | 4 | CODE | |
| LOW | ynnpack/kernels/elementwise/x86.py | 5 | CODE | |
| LOW | ynnpack/kernels/binary/generator.py | 13 | CODE | |
| LOW | ynnpack/kernels/binary/kernels.py | 5 | CODE | |
| LOW | ynnpack/base/simd/rational_approximation.py | 196 | CODE | |
| LOW | ynnpack/base/simd/rational_approximation.py | 216 | CODE | |
| LOW | ynnpack/base/simd/rational_approximation.py | 235 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tools/xnncommon.py | 50 | "neondotfp16arith": "XNN_ENABLE_ARM_DOTPROD && XNN_ENABLE_ARM_FP16_VECTOR", | CODE |
| HIGH⚡ | tools/xnncommon.py | 52 | "neoni8mmbf16": "XNN_ENABLE_ARM_I8MM && XNN_ENABLE_ARM_BF16", | CODE |
| HIGH⚡ | tools/xnncommon.py | 56 | "sme2": "XNN_ENABLE_ARM_SME2 && XNN_ENABLE_ARM_SME_ACLE", | CODE |
| HIGH | ynnpack/kernels/dot/generator/dot_base.py | 169 | assert(B_stride_k1 % {self.b_tile_stride_k()} == 0 || K1 == 1); | CODE |
| HIGH | ynnpack/kernels/elementwise/compiler.py | 1652 | f"stride_{b.name}_n == 0 || stride_{b.name}_n == {b.ty.size // 8}" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/xngen.py | 69 | CODE | |
| LOW | tools/parse-microkernel-bench.py | 55 | CODE | |
| LOW | tools/parse-microkernel-bench.py | 93 | CODE | |
| LOW | tools/xnncommon.py | 191 | CODE | |
| LOW | tools/update-microkernels.py | 172 | CODE | |
| LOW | tools/generate-gemm-test.py | 751 | CODE | |
| LOW | tools/generate-gemm-test.py | 973 | CODE | |
| LOW | gemm_compiler/x64_template.py | 469 | CODE | |
| LOW | gemm_compiler/aarch32_template.py | 114 | CODE | |
| LOW | scripts/check_files_changed.py | 8 | CODE | |
| LOW | scripts/check_config.py | 29 | CODE | |
| LOW | scripts/sort-filenames.py | 22 | CODE | |
| LOW | ynnpack/kernels/dot/cost_model/fit_cost_models.py | 40 | CODE | |
| LOW | ynnpack/kernels/dot/cost_model/fit_cost_models.py | 137 | CODE | |
| LOW | ynnpack/kernels/dot/cost_model/fit_cost_models.py | 184 | CODE | |
| LOW | ynnpack/kernels/dot/cost_model/fit_cost_models.py | 462 | CODE | |
| LOW | ynnpack/kernels/dot/cost_model/fit_cost_models.py | 483 | CODE | |
| LOW | ynnpack/kernels/dot/generator/arm.py | 98 | CODE | |
| LOW | ynnpack/kernels/dot/generator/wasm.py | 98 | CODE | |
| LOW | ynnpack/kernels/dot/generator/dot_base.py | 295 | CODE | |
| LOW | ynnpack/kernels/dot/generator/x86.py | 243 | CODE | |
| LOW | ynnpack/kernels/dot/generator/x86.py | 301 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 965 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 40 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 77 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1138 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1213 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1295 | CODE | |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1441 | CODE | |
| LOW | ynnpack/kernels/elementwise/x86.py | 37 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | litert/tensor/backends/testing/README.md | 30 | ### Step 1: Implement `TestBackendBridge` | COMMENT |
| LOW | litert/tensor/backends/testing/README.md | 83 | ### Step 2: Define Backend Traits | COMMENT |
| LOW | litert/tensor/backends/testing/README.md | 97 | ### Step 3: Instantiate the Suite | COMMENT |
| LOW | litert/tensor/backends/testing/README.md | 113 | ### Step 4: Update the BUILD target | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 684 | // Step 1: Load A0, B0 -> C00 += A0 * B0 | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 689 | // Step 2: Load B1 -> C01 += A0 * B1 (reusing A0 in R6) | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 693 | // Step 3: Load B2 -> C02 += A0 * B2 (reusing A0 in R6) | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 697 | // Step 4: Load A1 -> C12 += A1 * B2 (reusing B2 in R7) | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 701 | // Step 5: Reload B0 -> C10 += A1 * B0 (reusing A1 in R6) | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 705 | // Step 6: Reload B1 -> C11 += A1 * B1 (reusing A1 in R6) | COMMENT |
| LOW⚡ | src/subgraph.c | 748 | // Step 1: detect NCHW-compatible Nodes | COMMENT |
| LOW⚡ | src/subgraph.c | 749 | // Step 2: detect NCHW-compatible clusters (run connected components graph | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/xngen.py | 46 | def extract_leading_whitespace(line): | CODE |
| LOW | tools/xnncommon.py | 15 | def _remove_duplicate_newlines(text): | CODE |
| LOW | tools/update-microkernels.py | 119 | def _extract_microkernels_from_file(args): | CODE |
| LOW | tools/update-microkernels.py | 150 | def write_grouped_microkernels_bzl(file, key, microkernels, prefix, suffix): | CODE |
| LOW | tools/update-microkernels.py | 161 | def write_grouped_microkernels_cmake(file, key, microkernels, prefix, suffix): | CODE |
| LOW | tools/update-microkernels.py | 487 | def non_prod_asm_srcs_for_arch(arch): | STRING |
| LOW | gemm_compiler/x64_template.py | 203 | def quantization_params_offset(self): | CODE |
| LOW | gemm_compiler/x64_template.py | 212 | def input_output_register_setup(self): | CODE |
| LOW | gemm_compiler/base_architecture.py | 193 | def input_output_register_setup(self): | CODE |
| LOW | gemm_compiler/arm_template.py | 29 | def input_output_register_setup(self): | CODE |
| LOW | gemm_compiler/generate.py | 13 | def generate_gemm_microkernel( | CODE |
| LOW | gemm_compiler/aarch32_template.py | 169 | def extend_inputs_and_weights(self): | CODE |
| LOW | gemm_compiler/neonmlal_aarch32_template.py | 79 | def quantization_params_register(self): | CODE |
| LOW | gemm_compiler/neondot_template.py | 76 | def quantization_params_register(self): | CODE |
| LOW | gemm_compiler/avx512vnni_template.py | 81 | def quantization_params_register(self): | CODE |
| LOW | gemm_compiler/avx512vnni_template.py | 149 | def quantization_params_offset(self): | STRING |
| LOW | gemm_compiler/avx512vnni_template.py | 399 | def quantization_params_offset(self): | CODE |
| LOW | ynnpack/kernels/dot/generator/dot_base.py | 602 | def generate_dot_kernels_impl( | CODE |
| LOW | ynnpack/kernels/elementwise/compiler.py | 633 | def rounding_narrowing_shift_right(x, shift): | CODE |
| LOW | ynnpack/kernels/elementwise/rules.py | 23 | def add_saturating_cast_rules(): | CODE |
| LOW | ynnpack/kernels/elementwise/generator.py | 33 | def generate_elementwise_kernels( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 684 | // Step 1: Load A0, B0 -> C00 += A0 * B0 | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 689 | // Step 2: Load B1 -> C01 += A0 * B1 (reusing A0 in R6) | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 693 | // Step 3: Load B2 -> C02 += A0 * B2 (reusing A0 in R6) | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 697 | // Step 4: Load A1 -> C12 += A1 * B2 (reusing B2 in R7) | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 701 | // Step 5: Reload B0 -> C10 += A1 * B0 (reusing A1 in R6) | COMMENT |
| LOW⚡ | ynnpack/kernels/dot/x86_amx.h | 705 | // Step 6: Reload B1 -> C11 += A1 * B1 (reusing A1 in R6) | COMMENT |
| LOW⚡ | src/subgraph.c | 748 | // Step 1: detect NCHW-compatible Nodes | COMMENT |
| LOW⚡ | src/subgraph.c | 749 | // Step 2: detect NCHW-compatible clusters (run connected components graph | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gemm_compiler/avx512vnni_template.py | 405 | # mask register is unused here, just use that one. | COMMENT |
| MEDIUM | test/operators/batch-matrix-multiply-operator-tester.h | 1260 | // equal. For a more nuanced estimate, we could/should compute and apply the | COMMENT |
| MEDIUM | ynnpack/kernels/dot/cost_model/fit_cost_models.py | 320 | # harness and function call, while per-block overhead (x1 = num_blocks) and | COMMENT |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1484 | # If there is no broadcasting for this b we can just use | COMMENT |
| MEDIUM | ynnpack/base/half.h | 15 | // known to be at least a robust f16<->f32 conversion, which generally means a | COMMENT |
| MEDIUM | src/xnnpack/math.h | 512 | // known to be at least a robust f16<->f32 conversion, which generally means a | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/xngen.py | 23 | except ValueError: | CODE |
| HIGH | tools/parse-microkernel-bench.py | 103 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ynnpack/kernels/reduce/sum.h | 205 | // In this implementation, there are some details to the above: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gemm_compiler/avx512f_template.py | 384 | # Check if channels are odd. | COMMENT |
| LOW | gemm_compiler/avx512bf16_template.py | 66 | # Check if channels are odd. | COMMENT |
| LOW | ynnpack/kernels/elementwise/compiler.py | 1217 | # Check if we already lifted this constant. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/parse-microkernel-bench.py | 103 | except Exception: | CODE |
| MEDIUM | tools/generate-gemm-test.py | 1116 | print(f"Error: k_block ({k_block}) must be >= kr * sr ({kr} * {sr}) for kernel {name} in {options.spec}") | STRING |
| LOW | scripts/compare-compile-commands.py | 93 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/replicable_random_device.h | 147 | // Usage example: | COMMENT |
| LOW | ynnpack/base/test/fuzz_test.h | 99 | // Usage example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/run-gn-tests.py | 182 | # Create the list of tests to run, sharding the long ones. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/operators/fingerprint_id.h | 76 | // ├─────┼─────┼─────┼─────┼───────┤ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …npack/kernels/dot/generator/x86_int8_int8_int32_k16.py | 60 | CODE | |
| LOW | …pack/kernels/dot/generator/x86_uint8_int8_int32_k16.py | 56 | CODE |