MLIR: Uma Infraestrutura de Compilação para o Fim da Lei de Moore
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.
Resumo
Este trabalho apresenta o MLIR, uma abordagem inovadora para a construção de infraestrutura de compiladores reutilizável e extensível. O MLIR visa mitigar a fragmentação de software, melhorar a compilação para hardware heterogêneo, reduzir significativamente o custo de desenvolvimento de compiladores específicos de domínio e facilitar a integração entre compiladores existentes. O MLIR facilita o projeto e a implementação de geradores de código, tradutores e otimizadores em diferentes níveis de abstração e também entre domínios de aplicação, alvos de hardware e ambientes de execução. As contribuições deste trabalho incluem: (1) a discussão do MLIR como um artefato de pesquisa, construído para extensão e evolução, e a identificação dos desafios e oportunidades impostos por esse novo ponto de design em design, semântica, especificação de otimização, sistema e engenharia; (2) a avaliação do MLIR como uma infraestrutura generalizada que reduz o custo de construção de compiladores, descrevendo diversos casos de uso para demonstrar oportunidades de pesquisa e educacionais para futuras linguagens de programação, compiladores, ambientes de execução e arquitetura de computadores. O artigo também apresenta o raciocínio por trás do MLIR, seus princípios de design originais, estruturas e semântica.
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.