一句话:提出基于效应处理器的 MLIR 语义框架,使方言语义可模块化、可组合地指定。
MLIR 是用于编译器中间表示开发的新框架,其核心是方言与优化可按需组合,从而支持跨领域共享 IR 抽象。随着 MLIR 在工业界快速采用,亟需与其灵活性和可扩展性相匹配的形式化语义技术。本文提出一种基于效应处理器(effect handlers)的 MLIR 语义框架,使各方言语义能够以模块化、可组合的方式指定,与 MLIR 自身的组合机制相对应。论文还讨论了基于该处理器式 MLIR 语义的若干后续研究方向。
MLIR is a novel framework for developing intermediate representations (IRs) of compilers. At its core, MLIR is a framework for the specification of syntax fragments (dialects) and optimisations, which can be combined à−la−carte to form customised IRs. Through this, MLIR allows IR abstractions to be shared across different domains. With rapid adoption of MLIR across industry, techniques for formalised semantics which matches the flexibility and extensibility offered by MLIR are urgently needed. We propose a framework for MLIR semantics based on effect handlers, which allows for dialect semantics to be specified in a modular and composable way, parallel to MLIR. We also describe several research directions continuing on from handlers-based MLIR semantics.