Skip to content
Book Open access

Customizing Scalable Instructions via Multi-Level E-Graph Anti-Unification

2027 · Proceedings of the 32nd ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1 · 0 citations · 67 references

Abstract

Modern workloads demand computational capabilities that general-purpose processors cannot efficiently provide. Extending these architectures with domain-specific instructions and hardware offers a practical solution. The open RISC-V instruction-set architecture (ISA) significantly lowers the barrier to such customization. However, existing automated customization flows face two key limitations. First, they typically operate on low-level intermediate representations, obscuring higher-level computation patterns and thereby limiting both performance and reusability. Second, they decouple instruction identification from microarchitectural design, leading to suboptimal performance under on-chip resource constraints. These issues become more pronounced as instructions scale up and reusability becomes more critical. We present ScaleISA, an end-to-end framework for customizing scalable instructions from domain applications. The major insight of ScaleISA is combining MLIR and e-graphs to identify reusable instructions at appropriate levels of abstraction and performing joint microarchitectural exploration. It introduces a dialect-agnostic encoding that brings MLIR into e-graphs. Its core methodology, multi-level instruction identification (MLII), applies microarchitectural transformations through e-graph rewrites, and then leverages multi-level e-graph anti-unification (MLAU) to identify reusable instruction candidates together with their microarchitectural implementations in a single unified search space. Final budget-aware e-graph extraction jointly chooses custom instructions and their microarchitectures. Evaluation shows that aleisa achieves an average 1.42x (up to 2.87x) speedup over the best baselines by performing multi-level instruction identification.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.