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.