GraalVM中间表示的形式语义
A Formal Semantics of the GraalVM Intermediate Representation
AI总结:
本文在Isabelle/HOL中为GraalVM的图式SSA中间表示构建大步数据节点语义与小步控制流语义,并据此证明规范化和条件消除优化的正确性。
摘要:
编译器的优化阶段负责将程序的中间表示(IR)转换为更高效的形式。诸如GraalVM编译器中使用的现代优化器,采用由复杂图数据结构构成的IR,该结构将数据流和控制流合并到同一个结构中。作为验证GraalVM优化过程这一更广泛项目的一部分,本文在Isabelle/HOL中描述了其IR的语义。该语义包括针对数据节点的大步操作语义(这些数据节点以基于图的静态单赋值(SSA)形式表示),以及用于处理控制流的小步操作语义,涵盖基于堆的读写、异常和方法调用。我们已针对该语义证明了一组规范化优化和条件消除优化。
英文摘要:
The optimization phase of a compiler is responsible for transforming an intermediate representation (IR) of a program into a more efficient form. Modern optimizers, such as that used in the GraalVM compiler, use an IR consisting of a sophisticated graph data structure that combines data flow and control flow into the one structure. As part of a wider project on the verification of optimization passes of GraalVM, this paper describes a semantics for its IR within Isabelle/HOL. The semantics consists of a big-step operational semantics for data nodes (which are represented in a graph-based static single assignment (SSA) form) and a small-step operational semantics for handling control flow including heap-based reads and writes, exceptions, and method calls. We have proved a suite of canonicalization optimizations and conditional elimination optimizations with respect to the semantics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。