MLIR:ムーアの法則の終焉に向けたコンパイラインフラストラクチャ
MLIR: A Compiler Infrastructure for the End of Moore's Law
MLIR: A Compiler Infrastructure for the End of Moore's Law
@misc{lattner2020mlir,
title = {MLIR: A Compiler Infrastructure for the End of Moore's Law},
author = {Chris Lattner and Mehdi Amini and Uday Bondhugula and Albert Cohen and Andy Davis and Jacques Pienaar and River Riddle and Tatiana Shpeisman and Nicolas Vasilache and Oleksandr Zinenko},
year = {2020},
eprint = {2002.11054},
archivePrefix = {arXiv},
primaryClass = {cs.PL},
url = {https://arxiv.org/abs/2002.11054}
}
Lattner, C., Amini, M., Bondhugula, U., Cohen, A., Davis, A., Pienaar, J., Riddle, R., Shpeisman, T., Vasilache, N., & Zinenko, O. (2020). MLIR: A Compiler Infrastructure for the End of Moore's Law [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2002.11054
LATTNER C, AMINI M, BONDHUGULA U, et al. MLIR: A Compiler Infrastructure for the End of Moore's Law[EB/OL]. (2020-02-25)[2026-11-29]. https://arxiv.org/abs/2002.11054.
要旨
本稿は、再利用可能かつ拡張可能なコンパイラインフラストラクチャの構築に向けた新たなアプローチである MLIR を提示する。MLIR は、ソフトウェアの断片的化に対処し、異種ハードウェア向けのコンパイルを改善し、ドメイン特化型コンパイラの構築コストを大幅に削減し、既存のコンパイラを相互接続するのを支援することを目的としている。MLIR は、異なる抽象化レベルおよびアプリケーションドメイン、ハードウェアターゲット、実行環境をまたいで、コードジェネレータ、翻訳器、最適化の設計と実装を可能にする。本稿の貢献は、(1) 拡張性と進化を目的として構築された研究アセットとしての MLIR に関する議論であり、この新しい設計点が生み出す設計、意味論、最適化仕様、システム、および工学上の課題と機会を特定すること、(2) MLIR をコンパイラ構築コストを削減する汎用インフラストラクチャとして評価することであり、多様なユースケースを通じて将来のプログラミング言語、コンパイラ、実行環境、およびコンピュータアーキテクチャにおける研究と教育上の機会を示すことにあり、さらに MLIR の根拠、元々の設計原則、構造、および意味論を提示する。
This work presents MLIR, a novel approach to building reusable and extensible compiler infrastructure. MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, significantly reduce the cost of building domain specific compilers, and aid in connecting existing compilers together. MLIR facilitates the design and implementation of code generators, translators and optimizers at different levels of abstraction and also across application domains, hardware targets and execution environments. The contribution of this work includes (1) discussion of MLIR as a research artifact, built for extension and evolution, and identifying the challenges and opportunities posed by this novel design point in design, semantics, optimization specification, system, and engineering. (2) evaluation of MLIR as a generalized infrastructure that reduces the cost of building compilers-describing diverse use-cases to show research and educational opportunities for future programming languages, compilers, execution environments, and computer architecture. The paper also presents the rationale for MLIR, its original design principles, structures and semantics.