Towards Optimized Arithmetic Circuits with MLIR

Numerical programs are typically conceived using real numbers.However, programming languages and compiler infrastructures operate at a lower abstraction level, constrained by fixed-width machine arithmetic.This abstraction gap limits the scope of legal arithmetic optimizations and complicates the generation of efficient circuits for application-specific hardware. This work introduces a set of MLIR dialects that explicitly separate concerns between real-valued computation and low-level arithmetic representation.The RealArith dialect captures mathematical intent, enabling algebraic rewrites and approximation-aware transformations, while the FixedPointArith dialect expresses quantized arithmetic with fine-grained control over bit widths.We implement an end-to-end lowering flow that performs polynomial approximation, generating fixed-point Horner-form architectures tailored for hardware synthesis.This separation enables arithmetic optimizations beyond those supported by conventional compilers. We present early hardware results on signal processing benchmarks, demonstrating the potential of our approach for arithmetic-aware circuit generation.Our evaluation includes multiple polynomial approximation schemes, including single and uniform piecewise forms, which highlight trade-offs between arithmetic complexity and memory usage, and compares against Vitis HLS and standard MLIR lowering baselines.

Authors

Institutions

Publication Details

Journal
WiPiEC Journal - Works in Progress in Embedded Computing Journal
Published
2025-09-02
DOI
https://doi.org/10.64552/wipiec.v11i1.90
Primary Topic
Numerical Methods and Algorithms
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Towards Optimized Arithmetic Circuits with MLIR

Pierre Cochard, Florent de Dinechin, Louis V. Ledoux
WiPiEC Journal - Works in Progress in Embedded Computing Journal
Numerical Methods and Algorithms
article

Towards Optimized Arithmetic Circuits with MLIR

Pierre Cochard, Florent de Dinechin, Louis V. Ledoux
article en

Abstract

Numerical programs are typically conceived using real numbers.However, programming languages and compiler infrastructures operate at a lower abstraction level, constrained by fixed-width machine arithmetic.This abstraction gap limits the scope of legal arithmetic optimizations and complicates the generation of efficient circuits for application-specific hardware. This work introduces a set of MLIR dialects that explicitly separate concerns between real-valued computation and low-level arithmetic representation.The RealArith dialect captures mathematical intent, enabling algebraic rewrites and approximation-aware transformations, while the FixedPointArith dialect expresses quantized arithmetic with fine-grained control over bit widths.We implement an end-to-end lowering flow that performs polynomial approximation, generating fixed-point Horner-form architectures tailored for hardware synthesis.This separation enables arithmetic optimizations beyond those supported by conventional compilers. We present early hardware results on signal processing benchmarks, demonstrating the potential of our approach for arithmetic-aware circuit generation.Our evaluation includes multiple polynomial approximation schemes, including single and uniform piecewise forms, which highlight trade-offs between arithmetic complexity and memory usage, and compares against Vitis HLS and standard MLIR lowering baselines.

WiPiEC Journal - Works in Progress in Embedded Computing JournalVol. 11(1)
Institut National des Sciences Appliquées de Lyon (FR)
Openalex Percentile: Top 75%
Numerical Methods and Algorithms
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.