Publications

Detailed Information

Reconciling high-level optimizations and low-level code in LLVM

DC Field Value Language
dc.contributor.authorLee, Juneyoung-
dc.contributor.authorHur, Chung-Kil-
dc.contributor.authorJung, Ralf-
dc.contributor.authorLiu, Zhengyang-
dc.contributor.authorRegehr, John-
dc.contributor.authorLopes, Nuno P.-
dc.date.accessioned2023-06-27T06:36:56Z-
dc.date.available2023-06-27T06:36:56Z-
dc.date.created2023-06-23-
dc.date.issued2018-11-
dc.identifier.citationProceedings of the ACM on Programming Languages, Vol.2 No.OOPSLA-
dc.identifier.issn2475-1421-
dc.identifier.urihttps://hdl.handle.net/10371/192880-
dc.description.abstractLLVM miscompiles certain programs in C, C++, and Rust that use low-level language features such as raw pointers in Rust or conversion between integers and pointers in C or C++. The problem is that it is difficult for the compiler to implement aggressive, high-level memory optimizations while also respecting the guarantees made by the programming languages to low-level programs. A deeper problem is that the memory model for LLVM's intermediate representation (IR) is informal and the semantics of corner cases are not always clear to all compiler developers. We developed a novel memory model for LLVM IR and formalized it. The new model requires a handful of problematic IR-level optimizations to be removed, but it also supports the addition of new optimizations that were not previously legal. We have implemented the new model and shown that it fixes known memory-model-related miscompilations without impacting the quality of generated code.-
dc.language영어-
dc.publisherAssociation for Computing Machinery (ACM)-
dc.titleReconciling high-level optimizations and low-level code in LLVM-
dc.typeArticle-
dc.identifier.doi10.1145/3276495-
dc.citation.journaltitleProceedings of the ACM on Programming Languages-
dc.identifier.wosid000752206000019-
dc.identifier.scopusid2-s2.0-85069859334-
dc.citation.numberOOPSLA-
dc.citation.volume2-
dc.description.isOpenAccessY-
dc.contributor.affiliatedAuthorHur, Chung-Kil-
dc.type.docTypeArticle-
dc.description.journalClass1-
dc.subject.keywordAuthorIR Memory Model-
dc.subject.keywordAuthorLLVM-
Appears in Collections:
Files in This Item:
There are no files associated with this item.

Altmetrics

Item View & Download Count

  • mendeley

Items in S-Space are protected by copyright, with all rights reserved, unless otherwise indicated.

Share