Extendable and Decoupled Multi-Level Intermediate Representation (MLIR) Compilation with JavaScript

The promise of the MLIR framework is to be a universal Intermediate Representation (IR) that can be used on all processing steps of the compiler, from the high-level Abstract Syntax Tree (AST) down to the low-level representation. To achieve this, MLIR introduces the concept of dialects, to encapsulate specific abstractions, and allows the co-existence of any combination of dialects in the same IR. However, MLIR faces composability and extensibility issues, which hinder the original objective of providing a "reusable and extensible compiler infrastructure". Extending the MLIR ecosystem with a new dialect usually requires modifications to the framework, immediately causing fragmentation. Additionally, the MLIR ecosystem has a steep learning curve, which hinders adoption by new developers. In this paper, we propose an approach that intends to lower the entry barrier and improve the composability and extensibility of MLIR, as well as a concrete solution for the first steps of obtaining and parsing MLIR. Since the MLIR language itself is open to extensions, this requires a more agile and dynamic approach to processing it. Our solution is based on a compiler, built on top of the LARA framework, which does not pre-impose restrictions on the code that it can parse and transform.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2024-09-05
DOI
https://doi.org/10.5281/zenodo.14919519
Primary Topic
Species Distribution and Climate Change
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Extendable and Decoupled Multi-Level Intermediate Representation (MLIR) Compilation with JavaScript

Zenodo (CERN European Organization for Nuclear Research)
Species Distribution and Climate Change
article

Extendable and Decoupled Multi-Level Intermediate Representation (MLIR) Compilation with JavaScript

article en

Abstract

The promise of the MLIR framework is to be a universal Intermediate Representation (IR) that can be used on all processing steps of the compiler, from the high-level Abstract Syntax Tree (AST) down to the low-level representation. To achieve this, MLIR introduces the concept of dialects, to encapsulate specific abstractions, and allows the co-existence of any combination of dialects in the same IR. However, MLIR faces composability and extensibility issues, which hinder the original objective of providing a "reusable and extensible compiler infrastructure". Extending the MLIR ecosystem with a new dialect usually requires modifications to the framework, immediately causing fragmentation. Additionally, the MLIR ecosystem has a steep learning curve, which hinders adoption by new developers. In this paper, we propose an approach that intends to lower the entry barrier and improve the composability and extensibility of MLIR, as well as a concrete solution for the first steps of obtaining and parsing MLIR. Since the MLIR language itself is open to extensions, this requires a more agile and dynamic approach to processing it. Our solution is based on a compiler, built on top of the LARA framework, which does not pre-impose restrictions on the code that it can parse and transform.

Zenodo (CERN European Organization for Nuclear Research)
Universidade do Porto (PT), INESC TEC (PT)
Industry, innovation and infrastructure
Openalex Percentile: Top 24%
Species Distribution and Climate Change
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.

Extendable and Decoupled Multi-Level Intermediate Representation (MLIR) Compilation with JavaScript · Zenodo (CERN European Organization for Nuclear Research) (2024) | TGRS Research Map | TGRS