arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.15429cs.PLcs.AR
收藏

从硬件的形式模型生成编译器后端

Generation of Compiler Backends from Formal Models of Hardware

Gus Henry Smith

AI总结:

本文提出从硬件形式模型自动生成编译器后端的方法,利用自动推理算法提升优化能力与正确性保证,缩短开发时间,并通过Glenside和Lakeroad两个案例验证了该方法的有效性。

摘要:

编译器负责在表示形式之间进行转换——通常是从高级的、人类可写的代码转换为低级的、机器可读的代码。编译器后端是编译器中包含针对特定硬件目标的优化和代码生成例程的部分。在本论文中,我提倡一种构建编译器后端的具体方法:即使用自动推理算法,从硬件的显式形式模型中自动生成它们。我描述了如何从硬件的形式模型自动生成编译器,从而提高优化能力、增强正确性保证,并缩短编译器后端的开发时间。作为证据,我展示了两个案例研究:首先是Glenside,它使用相等饱和(equality saturation)来增强3LA编译器将操作卸载到机器学习加速器的能力;其次是Lakeroad,这是一个用于FPGA的技术映射器,它使用程序综合和从Verilog提取的语义,将硬件设计映射到复杂的可编程硬件原语。

英文摘要:

Compilers convert between representations -- usually, from higher-level, human writable code to lower-level, machine-readable code. A compiler backend is the portion of the compiler containing optimizations and code generation routines for a specific hardware target. In this dissertation, I advocate for a specific way of building compiler backends: namely, by automatically generating them from explicit, formal models of hardware using automated reasoning algorithms. I describe how automatically generating compilers from formal models of hardware leads to increased optimization ability, stronger correctness guarantees, and reduced development time for compiler backends. As evidence, I present two case studies: first, Glenside, which uses equality saturation to increase the 3LA compiler's ability to offload operations to machine learning accelerators, and second, Lakeroad, a technology mapper for FPGAs which uses program synthesis and semantics extracted from Verilog to map hardware designs to complex, programmable hardware primitives.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑