AutoLALA: Automatic Loop Algebraic Locality Analysis for AI and HPC Kernels
Yifan ZhuYekai PanYanghui Wu
Chen Ding Yifan Zhu
Yekai Pan
Yanghui Wu

Chen Ding
+4
AutoLALA is an open-source tool for analyzing data locality of affine loop programs. It accepts a small DSL, lowers programs to polyhedral representations, and directly produces closed-form symbolic formulas for reuse distance and data movement complexity. The key contribution is computing reuse distance as the image of the access space under the access map, avoiding stack simulation or Denning's working-set formulation. The tool handles arbitrary affine loop nests, covering tensor contractions, einsum, stencils, and general polyhedral programs, and provides a command-line interface and an interactive web playground.

arXiv ·
· April 6, 2026