Matrix multiplication is a ubiquitous kernel in high-performance computing, yet its efficient execution on commodity CPUs remains challenging when expressed through high-level domain-specific languages (DSLs). Existing DSLs for tiled matrix operations rely heavily on GPU backends, leaving a gap for CPU-centric acceleration that can exploit modern multi-core architectures without incurring the overhead of data movement. This work presents a Rust-based bridge that compiles a tiled DSL into MLIR nano-kernels, enabling efficient execution on a CPU matrix accelerator. The bridge preserves a height-balanced tile index tree, guaranteeing O(log n) access to sub-matrices and amortized O(n^3) multiplication cost. The implementation leverages Rust's zero-cost abstractions and MLIR's polyhedral optimizations to generate lightweight kernels that fit within the CPU's spatial memory hierarchy. Empirical evaluation in our research evaluation environment,.25 µs and a throughput of 1 470 042 ops/s for 30 benchmark iterations. The implementation is fully reproducible and available at
Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.
Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.
Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.
@article{yonathan2026_2026_12_04_bridging_tiled_domain_specific_lang,
title={Tiled Matrix Multiplication via MLIR Nano-Kernels: A Rust Implementation for CPU Acceleration},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-12-04_bridging_tiled_domain_specific_lang/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-12-04_bridging_tiled_domain_specific_lang/2026-12-04_bridging_tiled_domain_specific_lang.pdf}}
}