// src/quant/registry.hpp - the per-tier kernel tables the dispatcher (dispatch.cpp) walks. One table function per source file that holds kernels. #pragma once #include "strata/quant/act.hpp" #include "strata/quant/dot.hpp" namespace strata::quant { struct DotTable { const DotKernel* v; int n; }; struct ActTable { const ActKernel* v; int n; }; DotTable generic_dot_table() noexcept; // dot_generic.cpp ActTable generic_act_table() noexcept; // act_ref.cpp #ifdef STRATA_QUANT_X86_TIERS DotTable avx_dot_table() noexcept; // x86/dot_avx.cpp (Arith::Avx, Isa::Avx1) DotTable avx2_dot_table() noexcept; // x86/dot_avx2.cpp (Arith::Avx2, Isa::Avx2) ActTable avx_act_table() noexcept; // x86/act_avx.cpp ActTable avx2_act_table() noexcept; // x86/act_avx2.cpp DotTable avx512_dot_table() noexcept; // x86/dot_avx512.cpp (Arith::Avx2 bits in 512-bit lanes, Isa::Avx512) #endif #ifdef STRATA_QUANT_ARM_TIERS DotTable neon_dot_table() noexcept; // arm/dot_neon.cpp (Arith::Neon, Isa::Neon) ActTable neon_act_table() noexcept; // arm/act_neon.cpp #endif } // namespace strata::quant