Language-parametric compiler validation with application to LLVM

10Citations
Citations of this article
19Readers
Mendeley users who have this article in their library.
Get full text

Abstract

We propose a new design for a Translation Validation (TV) system geared towards practical use with modern optimizing compilers, such as LLVM. Unlike existing TV systems, which are custom-tailored for a particular sequence of transformations and a specific, common language for input and output programs, our design clearly separates the transformation-specific components from the rest of the system, and generalizes the transformation-independent components. Specifically, we present Keq, the first program equivalence checker that is parametric to the input and output language semantics and has no dependence on the transformation between the input and output programs. The Keq algorithm is based on a rigorous formalization, namely cut-bisimulation, and is proven correct. We have prototyped a TV system for the Instruction Selection pass of LLVM, being able to automatically prove equivalence for translations from LLVM IR to the MachineIR used in compiling to x86-64. This transformation uses different input and output languages, and as such has not been previously addressed by the state of the art. An experimental evaluation shows that Keq successfully proves correct the translation of over 90% of 4732 supported functions in GCC from SPEC 2006.

Cite

CITATION STYLE

APA

Kasampalis, T., Park, D., Lin, Z., Adve, V. S., & Rosu, G. (2021). Language-parametric compiler validation with application to LLVM. In International Conference on Architectural Support for Programming Languages and Operating Systems - ASPLOS (pp. 1004–1019). Association for Computing Machinery. https://doi.org/10.1145/3445814.3446751

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free