CC 2024 – Author Index |
Contents -
Abstracts -
Authors
|
A B C D E F G H J K L M N P R S T U V W X Z
Amalou, Abderaouf Nassim |
CC '24: "Fast and Accurate Context-Aware ..."
Fast and Accurate Context-Aware Basic Block Timing Prediction using Transformers
Abderaouf Nassim Amalou, Elisa Fromont, and Isabelle Puaut (University of Rennes - Inria - CNRS - IRISA, France; University of Rennes - IUF - Inria - CNRS - IRISA, France) This paper introduces ORXESTRA, a context-aware execution time prediction model based on Transformers XL, specifically designed to accurately estimate performance in embedded system applications. Unlike traditional machine learning models that often overlook contextual information, resulting in biased predictions for individual isolated basic blocks, ORXESTRA overcomes this limitation by incorporating execution context awareness. By doing so, ORXESTRA effectively accounts for the processor micro-architecture without explicitly modeling micro-architectural elements such as caches, pipelines, and branch predictors. Our evaluations demonstrate ORXESTRA's ability to provide precise timing estimations for different ARM targets (Cortex M4, M7, A53, and A72), surpassing existing machine learning-based approaches in both prediction accuracy and prediction speed. @InProceedings{CC24p227, author = {Abderaouf Nassim Amalou and Elisa Fromont and Isabelle Puaut}, title = {Fast and Accurate Context-Aware Basic Block Timing Prediction using Transformers}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {227--237}, doi = {10.1145/3640537.3641572}, year = {2024}, } Publisher's Version |
|
Amaral, José Nelson |
CC '24: "Region-Based Data Layout via ..."
Region-Based Data Layout via Data Reuse Analysis
Caio Salvador Rohwedder, João P. L. De Carvalho, and José Nelson Amaral (University of Alberta, Canada) Data-structure splicing techniques, such as structure splitting, field reordering, and pointer inlining reorganize data structures to improve cache and translation look-aside buffer (TLB) utilization. Structure types are typically transformed globally in the program, requiring updates to all references to elements of a transformed type. These techniques often rely on instrumentation, tracing, or sampling to create models that guide their transformations. Furthermore, compilers often cannot prove that their transformations are legal and must rely on manual inspection and manual transformation. Applying data-layout transformations locally -- as opposed to globally -- to regions of code removes the need for expensive profiling and simplifies legality verification. This work introduces RebaseDL, a static analysis that finds profitable and legal region-based data layout transformation opportunities that improve access locality. These opportunities are found within code regions that exhibit data reuse. Going beyond structure splicing, RebaseDL also identifies transformation opportunities that do not involve structure types, that is, it identifies data packing transformations. The analysis is implemented in LLVM and it detects multiple transformation opportunities within the SPEC CPU benchmark suite, where the transformation obtains speedups of up to 1.34x for transformed regions. @InProceedings{CC24p49, author = {Caio Salvador Rohwedder and João P. L. De Carvalho and José Nelson Amaral}, title = {Region-Based Data Layout via Data Reuse Analysis}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {49--59}, doi = {10.1145/3640537.3641571}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Ayupov, Amir |
CC '24: "Stale Profile Matching ..."
Stale Profile Matching
Amir Ayupov, Maksim Panchenko, and Sergey Pupyrev (Meta, USA) Profile-guided optimizations rely on profile data for directing compilers to generate optimized code. To achieve the maximum performance boost, profile data needs to be collected on the same version of the binary that is being optimized. In practice however, there is typically a gap between the profile collection and the release, which makes a portion of the profile invalid for optimizations. This phenomenon is known as profile staleness, and it is a serious practical problem for data-center workloads both for compilers and binary optimizers. In this paper we thoroughly study the staleness problem and propose the first practical solution for utilizing profiles collected on binaries built from several revisions behind the release. Our algorithm is developed and implemented in a mainstream open-source post-link optimizer, BOLT. An extensive evaluation on a variety of standalone benchmarks and production services indicates that the new method recovers up to 0.8 of the maximum BOLT benefit, even when most of the input profile data is stale and would have been discarded by the optimizer otherwise. @InProceedings{CC24p162, author = {Amir Ayupov and Maksim Panchenko and Sergey Pupyrev}, title = {Stale Profile Matching}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {162--173}, doi = {10.1145/3640537.3641573}, year = {2024}, } Publisher's Version |
|
Barbalace, Antonio |
CC '24: "UNIFICO: Thread Migration ..."
UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation
Nikolaos Mavrogeorgis, Christos Vasiladiotis, Pei Mu, Amir Khordadi, Björn Franke, and Antonio Barbalace (University of Edinburgh, United Kingdom) Heterogeneous-ISA processor designs have attracted considerable research interest. However, unlike their homogeneous-ISA counterparts, explicit software support for bridging ISA heterogeneity is required. The lack of a compilation toolchain ready to support heterogeneous-ISA targets has been a major factor hindering research in this exciting emerging area. For any such compiler “getting right” the mechanics involved in state transformation upon migration and doing this efficiently is of critical importance. In particular, any runtime conversion of the current program stack from one architecture to another would be prohibitively expensive. In this paper, we design and develop Unifico, a new multi-ISA compiler that generates binaries that maintain the same stack layout during their execution on either architecture. Unifico avoids the need for runtime stack transformation, thus eliminating overheads associated with ISA migration. Additional responsibilities of the Unifico compiler backend include maintenance of a uniform ABI and virtual address space across ISAs. Unifico is implemented using the LLVM compiler infrastructure, and we are currently targeting the x86-64 and ARMv8 ISAs. We have evaluated Unifico across a range of compute-intensive NAS benchmarks and show its minimal impact on overall execution time, where less than 6% overhead is introduced on average. When compared against the state-of-the-art Popcorn compiler, Unifico reduces binary size overhead from ∼200% to ∼10%, whilst eliminating the stack transformation overhead during ISA migration. @InProceedings{CC24p86, author = {Nikolaos Mavrogeorgis and Christos Vasiladiotis and Pei Mu and Amir Khordadi and Björn Franke and Antonio Barbalace}, title = {UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {86--99}, doi = {10.1145/3640537.3641565}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced CC '24: "CoSense: Compiler Optimizations ..." CoSense: Compiler Optimizations using Sensor Technical Specifications Pei Mu, Nikolaos Mavrogeorgis, Christos Vasiladiotis, Vasileios Tsoutsouras, Orestis Kaparounakis, Phillip Stanley-Marbell, and Antonio Barbalace (University of Edinburgh, United Kingdom; University of Cambridge, United Kingdom) Embedded systems are ubiquitous, but in order to maximize their lifetime on batteries there is a need for faster code execution – i.e., higher energy efficiency, and for reduced memory usage. The large number of sensors integrated into embedded systems gives us the opportunity to exploit sensors’ technical specifications, like a sensor’s value range, to guide compiler optimizations for faster code execution, small binaries, etc. We design and implement such an idea in COSENSE, a novel compiler (extension) based on the LLVM infrastructure, using an existing domain-specific language (DSL), NEWTON, to describe the bounds of and relations between physical quantities measured by sensors. COSENSE utilizes previously unexploited physical information correlated to program variables to drive code optimizations. COSENSE computes value ranges of variables and proceeds to overload functions, compress variable types, substitute code with constants and simplify the condition statements. We evaluated COSENSE using several microbenchmarks and two real-world applications on various platforms and CPUs. For microbenchmarks, COSENSE achieves 1.18× geomean speedup in execution time and 12.35% reduction on average in binary code size with 4.66% compilation time overhead on x86, and 1.23× geomean speedup in execution time and 10.95% reduction on average in binary code size with 5.67% compilation time overhead on ARM. For real-world applications, COSENSE achieves 1.70× and 1.50× speedup in execution time, 12.96% and 0.60% binary code reduction, 9.69% and 30.43% lower energy consumption, with a 26.58% and 24.01% compilation time overhead, respectively. @InProceedings{CC24p73, author = {Pei Mu and Nikolaos Mavrogeorgis and Christos Vasiladiotis and Vasileios Tsoutsouras and Orestis Kaparounakis and Phillip Stanley-Marbell and Antonio Barbalace}, title = {CoSense: Compiler Optimizations using Sensor Technical Specifications}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {73--85}, doi = {10.1145/3640537.3641576}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Functional Results Reproduced |
|
Beard, Jonathan |
CC '24: "BLQ: Light-Weight Locality-Aware ..."
BLQ: Light-Weight Locality-Aware Runtime for Blocking-Less Queuing
Qinzhe Wu, Ruihao Li, Jonathan Beard, and Lizy John (University of Texas at Austin, USA; Arm, USA) Message queues are used widely in parallel processing systems for worker thread synchronization. When there is a throughput mismatch between the upstream and downstream tasks, the message queue buffer will often exist as either empty or full. Polling on an empty or full queue will affect the performance of upstream or downstream threads, since such polling cycles could have been spent on other computation. Non-blocking queue is an alternative that allow polling cycles to be spared for other tasks per applications’ choice. However, application programmers are not supposed to bear the burden, because a good decision of what to do upon blocking has to take many runtime environment information into consideration. This paper proposes Blocking-Less Queuing Runtime (BLQ), a systematic solution capable of finding the proper strategies at (or before) blocking, as well as lightening the programmers’ burden. BLQ collects a set of solutions, including yielding, advanced dynamic queue buffer resizing, and resource-aware task scheduling. The evaluation on high-end servers shows that a set of diverse parallel queuing workloads could reduce blocking and lower cache misses with BLQ. BLQ outperforms the baseline runtime considerably (with up to 3.8× peak speedup). @InProceedings{CC24p100, author = {Qinzhe Wu and Ruihao Li and Jonathan Beard and Lizy John}, title = {BLQ: Light-Weight Locality-Aware Runtime for Blocking-Less Queuing}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {100--112}, doi = {10.1145/3640537.3641568}, year = {2024}, } Publisher's Version |
|
Ben-Zion, Ziv |
CC '24: "If-Convert as Early as You ..."
If-Convert as Early as You Must
Dorit Nuzman, Ayal Zaks, and Ziv Ben-Zion (Mobileye, Israel) Optimizing compilers employ a rich set of transformations that generate highly efficient code for a variety of source languages and target architectures. These transformations typically operate on general control flow constructs which trigger a range of optimization opportunities, such as moving code to less frequently executed paths, and more. Regular loop nests are specifically relevant for accelerating certain domains, leveraging architectural features including vector instructions, hardware-controlled loops and data flows, provided their internal control-flow is eliminated. Compilers typically apply predicating if-conversion late, in their backend, to remove control-flow undesired by the target. Until then, transformations triggered by control-flow constructs that are destined to be removed may end up doing more harm than good. We present an approach that leverages the existing powerful and general optimization flow of LLVM when compiling for targets without control-flow in loops. Rather than trying to teach various transformations how to avoid misoptimizing for such targets, we propose to introduce an aggressive if-conversion pass as early as possible, along with carefully addressing pass-ordering implications. This solution outperforms the traditional compilation flow with only a modest tuning effort, thereby offering a robust and promising compilation approach for branch-restricted targets. @InProceedings{CC24p26, author = {Dorit Nuzman and Ayal Zaks and Ziv Ben-Zion}, title = {If-Convert as Early as You Must}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {26--38}, doi = {10.1145/3640537.3641562}, year = {2024}, } Publisher's Version |
|
Brevdo, Eugene |
CC '24: "The Next 700 ML-Enabled Compiler ..."
The Next 700 ML-Enabled Compiler Optimizations
S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla, Rajiv Shailesh Chitale, Eugene Brevdo, Albert Cohen, Mircea Trofin, and Ramakrishna Upadrasta (IIT Hyderabad, India; Google DeepMind, USA; Google DeepMind, France; Google, USA) There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler internals, raising issues with modularity, performance and framework independence. Practical deployment and transparency for the end-user are also important concerns. We propose ML-Compiler-Bridge to enable ML model development within a traditional Python framework while making end-to-end integration with an optimizing compiler possible and efficient. We evaluate it on both research and production use cases, for training and inference, over several optimization problems, multiple compilers and its versions, and gym infrastructures. @InProceedings{CC24p238, author = {S. VenkataKeerthy and Siddharth Jain and Umesh Kalvakuntla and Pranav Sai Gorantla and Rajiv Shailesh Chitale and Eugene Brevdo and Albert Cohen and Mircea Trofin and Ramakrishna Upadrasta}, title = {The Next 700 ML-Enabled Compiler Optimizations}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {238--249}, doi = {10.1145/3640537.3641580}, year = {2024}, } Publisher's Version Published Artifact Info Artifacts Available Artifacts Functional Results Reproduced |
|
Cat, Quartic |
CC '24: "Paguroidea: Fused Parser Generator ..."
Paguroidea: Fused Parser Generator with Transparent Semantic Actions
Yifan Zhu, Quartic Cat, Boluo Ge, and Shaotong Sun (University of Rochester, USA; Chinese University of Hong Kong, Shenzhen, China; North Carolina State University, USA) Parser generators have long been a savior for programmers, liberating them from the daunting task of crafting correct and maintainable parsers. Yet, this much-needed simplicity often comes at the expense of efficiency. We present, Paguroidea, a parser generator that harnesses the power of lexer-parser fusion techniques to create parsers that boast user-friendly grammar definitions while delivering performance that rivals specialized parsers. Building upon the foundations of the flap parser, our work introduces a series of extensions. One of our key contributions is a novel approach to the normalization method. By encoding reduction actions directly into the Deterministic Greibach Normal Form (DGNF), we provide parser generators with flexibility in manipulating semantic actions. This unique approach empowers developers with the freedom to customize their parser generators to their specific needs while maintaining semantic correctness. Furthermore, we formulate the execution of the parser in substructural logic, providing an elegant way to prove the correctness of the amended normalization procedure. In this exposition, we offer a glimpse into efficacious, user-friendly, and correctness-provable parser generation. @InProceedings{CC24p39, author = {Yifan Zhu and Quartic Cat and Boluo Ge and Shaotong Sun}, title = {Paguroidea: Fused Parser Generator with Transparent Semantic Actions}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {39--48}, doi = {10.1145/3640537.3641563}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Chen, Wenguang |
CC '24: "A Context-Sensitive Pointer ..."
A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction
Wei Li, Dongjie He, Yujiang Gui, Wenguang Chen, and Jingling Xue (UNSW, Australia; Tsinghua University, China) Existing program analysis tools for Rust lack the ability to effectively detect security vulnerabilities due to the absence of an accurate call graph and precise points-to information. We present Rupta, the first context-sensitive pointer analysis framework designed for Rust, with a particular focus on its role in constructing call graphs. Operating on Rust MIR, Rupta employs callsite-based context-sensitivity and on-the-fly call graph construction to address a range of pointer analysis challenges, including method/function calls, pointer casts, and nested structs, while preserving type information. Our assessment of Rupta against two state-of-the-art call graph construction techniques, Rurta (Rapid Type Analysis-based) and Ruscg (static dispatch-only), across 13 real-world Rust programs demonstrates its high efficiency and precision. In particular, our results reveal that Rupta surpasses Ruscg in soundness by discovering 29% more call graph edges and outperforms Rurta in precision by eliminating approximately 70% of spurious dynamic call edges. Consequently, Rupta has the potential to enhance existing security analysis tools, enabling them to identify a greater number of security vulnerabilities in Rust programs. @InProceedings{CC24p60, author = {Wei Li and Dongjie He and Yujiang Gui and Wenguang Chen and Jingling Xue}, title = {A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {60--72}, doi = {10.1145/3640537.3641574}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Chitale, Rajiv Shailesh |
CC '24: "The Next 700 ML-Enabled Compiler ..."
The Next 700 ML-Enabled Compiler Optimizations
S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla, Rajiv Shailesh Chitale, Eugene Brevdo, Albert Cohen, Mircea Trofin, and Ramakrishna Upadrasta (IIT Hyderabad, India; Google DeepMind, USA; Google DeepMind, France; Google, USA) There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler internals, raising issues with modularity, performance and framework independence. Practical deployment and transparency for the end-user are also important concerns. We propose ML-Compiler-Bridge to enable ML model development within a traditional Python framework while making end-to-end integration with an optimizing compiler possible and efficient. We evaluate it on both research and production use cases, for training and inference, over several optimization problems, multiple compilers and its versions, and gym infrastructures. @InProceedings{CC24p238, author = {S. VenkataKeerthy and Siddharth Jain and Umesh Kalvakuntla and Pranav Sai Gorantla and Rajiv Shailesh Chitale and Eugene Brevdo and Albert Cohen and Mircea Trofin and Ramakrishna Upadrasta}, title = {The Next 700 ML-Enabled Compiler Optimizations}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {238--249}, doi = {10.1145/3640537.3641580}, year = {2024}, } Publisher's Version Published Artifact Info Artifacts Available Artifacts Functional Results Reproduced |
|
Cohen, Albert |
CC '24: "The Next 700 ML-Enabled Compiler ..."
The Next 700 ML-Enabled Compiler Optimizations
S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla, Rajiv Shailesh Chitale, Eugene Brevdo, Albert Cohen, Mircea Trofin, and Ramakrishna Upadrasta (IIT Hyderabad, India; Google DeepMind, USA; Google DeepMind, France; Google, USA) There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler internals, raising issues with modularity, performance and framework independence. Practical deployment and transparency for the end-user are also important concerns. We propose ML-Compiler-Bridge to enable ML model development within a traditional Python framework while making end-to-end integration with an optimizing compiler possible and efficient. We evaluate it on both research and production use cases, for training and inference, over several optimization problems, multiple compilers and its versions, and gym infrastructures. @InProceedings{CC24p238, author = {S. VenkataKeerthy and Siddharth Jain and Umesh Kalvakuntla and Pranav Sai Gorantla and Rajiv Shailesh Chitale and Eugene Brevdo and Albert Cohen and Mircea Trofin and Ramakrishna Upadrasta}, title = {The Next 700 ML-Enabled Compiler Optimizations}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {238--249}, doi = {10.1145/3640537.3641580}, year = {2024}, } Publisher's Version Published Artifact Info Artifacts Available Artifacts Functional Results Reproduced |
|
Deleuze, Christophe |
CC '24: "From Low-Level Fault Modeling ..."
From Low-Level Fault Modeling (of a Pipeline Attack) to a Proven Hardening Scheme
Sébastien Michelland, Christophe Deleuze, and Laure Gonnord (Université Grenoble Alpes, France) Fault attacks present unique safety and security challenges that require dedicated countermeasures, even for bug-free programs. Models of these complex attacks are made workable by approximating their effects to a suitable level of abstraction. The common practice of targeting the Instruction Set Architecture (ISA) level isn't ideal because it discards important micro-architectural information, leading to weaker security guarantees. Conversely, including micro-architectural details makes countermeasures harder to model and reason about, creating a new challenge in validating and trusting protections. We show that a semantic approach to modeling faults makes micro-architectural models workable, and enables precise cooperation between software and hardware in the design of countermeasures. We demonstrate the approach by designing and implementing a compiler/hardware countermeasure, which protects against a state-of-the-art pipeline fetch attack that generalizes multi-fault instruction skips. Crucially, we provide a formal security proof that guarantees faults are detected by the end of every basic block. This result shows that carefully embracing the complexity of low-level systems enables finer, more secure countermeasures. @InProceedings{CC24p174, author = {Sébastien Michelland and Christophe Deleuze and Laure Gonnord}, title = {From Low-Level Fault Modeling (of a Pipeline Attack) to a Proven Hardening Scheme}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {174--185}, doi = {10.1145/3640537.3641570}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Demsky, Brian |
CC '24: "FlowProf: Profiling Multi-threaded ..."
FlowProf: Profiling Multi-threaded Programs using Information-Flow
Ahamed Al Nahian and Brian Demsky (University of California, Irvine, USA) Amdahl's law implies that even small sequential bottlenecks can seriously limit the scalability of multi-threaded programs. To achieve scalability, developers must painstakingly identify sequential bottlenecks in their program and eliminate these bottlenecks by either changing synchronization strategies or rearchitecting and rewriting any code with sequential bottlenecks. This can require significant effort by the developer to find and understand how to fix sequential bottlenecks. To address the issue, we bring a new tool, information flow, to the problem of understanding sequential bottlenecks. Information flow can help developers understand whether a bottleneck is fundamental to the computation, or merely an artifact of the implementation. First, our strategy tracks memory access conflicts to find over-synchronized applications where redesigning the synchronization strategy on existing implementation can improve performance. Then, information flow analysis finds optimization opportunities where changing the existing implementation can improve performance of applications that have bottlenecks due to unnecessary memory access conflicts. We implemented this in FlowProf. We have evaluated FlowProf on a set of multi-threaded Java applications where the generated optimization insights achieve performance gains of up to 58%. @InProceedings{CC24p137, author = {Ahamed Al Nahian and Brian Demsky}, title = {FlowProf: Profiling Multi-threaded Programs using Information-Flow}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {137--149}, doi = {10.1145/3640537.3641577}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available |
|
Derrien, Steven |
CC '24: "A Unified Memory Dependency ..."
A Unified Memory Dependency Framework for Speculative High-Level Synthesis
Jean-Michel Gorius, Simon Rokicki, and Steven Derrien (University of Rennes - Inria - CNRS - IRISA, France) Heterogeneous hardware platforms that leverage application-specific hardware accelerators are becoming increasingly popular as the demand for high-performance compute intensive applications rises. The design of such high-performance hardware accelerators is a complex task. High-Level Synthesis (HLS) promises to ease this process by synthesizing hardware from a high-level algorithmic description. Recent works have demonstrated that speculative execution can be inferred from the latter by leveraging compilation transformation and analysis techniques in HLS flows. However, existing work on speculative HLS lacks support for the intricate memory interactions in data-processing applications. In this paper, we introduce a unified memory speculation framework, which allows aggressive scheduling and high-throughput accelerator synthesis in the presence of complex memory dependencies. We show that our technique can generate high-throughput designs for various applications and describe a complete implementation inside an existing speculative HLS toolchain. @InProceedings{CC24p13, author = {Jean-Michel Gorius and Simon Rokicki and Steven Derrien}, title = {A Unified Memory Dependency Framework for Speculative High-Level Synthesis}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {13--25}, doi = {10.1145/3640537.3641581}, year = {2024}, } Publisher's Version |
|
Drescher, Florian |
CC '24: "Fast Template-Based Code Generation ..."
Fast Template-Based Code Generation for MLIR
Florian Drescher and Alexis Engelke (TU Munich, Germany) Fast compilation is essential for JIT-compilation use cases like dynamic languages or databases as well as development productivity when compiling static languages. Template-based compilation allows fast compilation times, but in existing approaches, templates are generally handwritten, limiting flexibility and causing substantial engineering effort. In this paper, we introduce an approach based on MLIR that derives code templates for the instructions of any dialect automatically ahead-of-time. Template generation re-uses the existing compilation path present in the MLIR lowering of the instructions and thereby inherently supports code generation from different abstraction levels in a single step. Our results on compiling database queries and standard C programs show a compile-time improvement of 10–30x compared to LLVM -O0 with only moderate run-time slowdowns of 1–3x, resulting in an overall improvement of 2x in a JIT-compilation-based database setting. @InProceedings{CC24p1, author = {Florian Drescher and Alexis Engelke}, title = {Fast Template-Based Code Generation for MLIR}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {1--12}, doi = {10.1145/3640537.3641567}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Dura, Alexandru |
CC '24: "Clog: A Declarative Language ..."
Clog: A Declarative Language for C Static Code Checkers
Alexandru Dura and Christoph Reichenbach (Lund University, Sweden) We present Clog, a declarative language for describing static code checkers for C. Unlike other extensible state-of-the-art checker frameworks, Clog enables powerful interprocedural checkers without exposing the underlying program representation: Clog checkers consist of Datalog-style recursive rules that access the program under analysis via syntactic pattern matching and control flow edges only. We have implemented Clog on top of Clang, using a custom Datalog evaluation strategy that piggy-backs on Clang's AST matching facilities while working around Clang's limitations to achieve our design goal of representation independence. Our experiments demonstrate that Clog can concisely express a wide variety of checkers for different security vulnerabilities, with performance that is similar to Clang's own analyses and highly competitive on real-world programs. @InProceedings{CC24p186, author = {Alexandru Dura and Christoph Reichenbach}, title = {Clog: A Declarative Language for C Static Code Checkers}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {186--197}, doi = {10.1145/3640537.3641579}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Engelke, Alexis |
CC '24: "Fast Template-Based Code Generation ..."
Fast Template-Based Code Generation for MLIR
Florian Drescher and Alexis Engelke (TU Munich, Germany) Fast compilation is essential for JIT-compilation use cases like dynamic languages or databases as well as development productivity when compiling static languages. Template-based compilation allows fast compilation times, but in existing approaches, templates are generally handwritten, limiting flexibility and causing substantial engineering effort. In this paper, we introduce an approach based on MLIR that derives code templates for the instructions of any dialect automatically ahead-of-time. Template generation re-uses the existing compilation path present in the MLIR lowering of the instructions and thereby inherently supports code generation from different abstraction levels in a single step. Our results on compiling database queries and standard C programs show a compile-time improvement of 10–30x compared to LLVM -O0 with only moderate run-time slowdowns of 1–3x, resulting in an overall improvement of 2x in a JIT-compilation-based database setting. @InProceedings{CC24p1, author = {Florian Drescher and Alexis Engelke}, title = {Fast Template-Based Code Generation for MLIR}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {1--12}, doi = {10.1145/3640537.3641567}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Franke, Björn |
CC '24: "UNIFICO: Thread Migration ..."
UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation
Nikolaos Mavrogeorgis, Christos Vasiladiotis, Pei Mu, Amir Khordadi, Björn Franke, and Antonio Barbalace (University of Edinburgh, United Kingdom) Heterogeneous-ISA processor designs have attracted considerable research interest. However, unlike their homogeneous-ISA counterparts, explicit software support for bridging ISA heterogeneity is required. The lack of a compilation toolchain ready to support heterogeneous-ISA targets has been a major factor hindering research in this exciting emerging area. For any such compiler “getting right” the mechanics involved in state transformation upon migration and doing this efficiently is of critical importance. In particular, any runtime conversion of the current program stack from one architecture to another would be prohibitively expensive. In this paper, we design and develop Unifico, a new multi-ISA compiler that generates binaries that maintain the same stack layout during their execution on either architecture. Unifico avoids the need for runtime stack transformation, thus eliminating overheads associated with ISA migration. Additional responsibilities of the Unifico compiler backend include maintenance of a uniform ABI and virtual address space across ISAs. Unifico is implemented using the LLVM compiler infrastructure, and we are currently targeting the x86-64 and ARMv8 ISAs. We have evaluated Unifico across a range of compute-intensive NAS benchmarks and show its minimal impact on overall execution time, where less than 6% overhead is introduced on average. When compared against the state-of-the-art Popcorn compiler, Unifico reduces binary size overhead from ∼200% to ∼10%, whilst eliminating the stack transformation overhead during ISA migration. @InProceedings{CC24p86, author = {Nikolaos Mavrogeorgis and Christos Vasiladiotis and Pei Mu and Amir Khordadi and Björn Franke and Antonio Barbalace}, title = {UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {86--99}, doi = {10.1145/3640537.3641565}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Frenot, Leon |
CC '24: "Reducing the Overhead of Exact ..."
Reducing the Overhead of Exact Profiling by Reusing Affine Variables
Leon Frenot and Fernando Magno Quintão Pereira (ENS Lyon, France; Federal University of Minas Gerais, Brazil) An exact profiler inserts counters in a program to record how many times each edge of that program's control-flow graph has been traversed during an execution of it. It is common practice to instrument only edges in the complement of a minimum spanning tree of the program's control-flow graph, following the algorithm proposed by Knuth and Stevenson in 1973. Yet, even with this optimization, the overhead of exact profiling is high. As a consequence, mainstream profile-guided code optimizers resort to sampling, i.e., approximate, profiling, instead of exact frequency counts. This paper introduces a technique to reduce the overhead of exact profiling. We show that it is possible to use the values of variables incremented by constant steps within loops---henceforth called SESE counters---as a replacement for some profiling counters. Such affine variables are common, for they include the induction variable of typical loops. This technique, although simple, is effective. We have implemented it in the LLVM compilation infrastructure. Standard Knuth-Stevenson instrumentation increases the running time of the 135 programs in the LLVM test suite from 648 seconds to 817. The optimization suggested in this paper brings this time down to 738 seconds. In the 949 Jotai programs, standard instrumentation increases the number of processed x86 instructions from 2.96 billion to 3.34 billion, whereas the proposed technique causes 3.07 billion instructions to be fetched. @InProceedings{CC24p150, author = {Leon Frenot and Fernando Magno Quintão Pereira}, title = {Reducing the Overhead of Exact Profiling by Reusing Affine Variables}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {150--161}, doi = {10.1145/3640537.3641569}, year = {2024}, } Publisher's Version |
|
Fromont, Elisa |
CC '24: "Fast and Accurate Context-Aware ..."
Fast and Accurate Context-Aware Basic Block Timing Prediction using Transformers
Abderaouf Nassim Amalou, Elisa Fromont, and Isabelle Puaut (University of Rennes - Inria - CNRS - IRISA, France; University of Rennes - IUF - Inria - CNRS - IRISA, France) This paper introduces ORXESTRA, a context-aware execution time prediction model based on Transformers XL, specifically designed to accurately estimate performance in embedded system applications. Unlike traditional machine learning models that often overlook contextual information, resulting in biased predictions for individual isolated basic blocks, ORXESTRA overcomes this limitation by incorporating execution context awareness. By doing so, ORXESTRA effectively accounts for the processor micro-architecture without explicitly modeling micro-architectural elements such as caches, pipelines, and branch predictors. Our evaluations demonstrate ORXESTRA's ability to provide precise timing estimations for different ARM targets (Cortex M4, M7, A53, and A72), surpassing existing machine learning-based approaches in both prediction accuracy and prediction speed. @InProceedings{CC24p227, author = {Abderaouf Nassim Amalou and Elisa Fromont and Isabelle Puaut}, title = {Fast and Accurate Context-Aware Basic Block Timing Prediction using Transformers}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {227--237}, doi = {10.1145/3640537.3641572}, year = {2024}, } Publisher's Version |
|
Ge, Boluo |
CC '24: "Paguroidea: Fused Parser Generator ..."
Paguroidea: Fused Parser Generator with Transparent Semantic Actions
Yifan Zhu, Quartic Cat, Boluo Ge, and Shaotong Sun (University of Rochester, USA; Chinese University of Hong Kong, Shenzhen, China; North Carolina State University, USA) Parser generators have long been a savior for programmers, liberating them from the daunting task of crafting correct and maintainable parsers. Yet, this much-needed simplicity often comes at the expense of efficiency. We present, Paguroidea, a parser generator that harnesses the power of lexer-parser fusion techniques to create parsers that boast user-friendly grammar definitions while delivering performance that rivals specialized parsers. Building upon the foundations of the flap parser, our work introduces a series of extensions. One of our key contributions is a novel approach to the normalization method. By encoding reduction actions directly into the Deterministic Greibach Normal Form (DGNF), we provide parser generators with flexibility in manipulating semantic actions. This unique approach empowers developers with the freedom to customize their parser generators to their specific needs while maintaining semantic correctness. Furthermore, we formulate the execution of the parser in substructural logic, providing an elegant way to prove the correctness of the amended normalization procedure. In this exposition, we offer a glimpse into efficacious, user-friendly, and correctness-provable parser generation. @InProceedings{CC24p39, author = {Yifan Zhu and Quartic Cat and Boluo Ge and Shaotong Sun}, title = {Paguroidea: Fused Parser Generator with Transparent Semantic Actions}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {39--48}, doi = {10.1145/3640537.3641563}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Gonnord, Laure |
CC '24: "From Low-Level Fault Modeling ..."
From Low-Level Fault Modeling (of a Pipeline Attack) to a Proven Hardening Scheme
Sébastien Michelland, Christophe Deleuze, and Laure Gonnord (Université Grenoble Alpes, France) Fault attacks present unique safety and security challenges that require dedicated countermeasures, even for bug-free programs. Models of these complex attacks are made workable by approximating their effects to a suitable level of abstraction. The common practice of targeting the Instruction Set Architecture (ISA) level isn't ideal because it discards important micro-architectural information, leading to weaker security guarantees. Conversely, including micro-architectural details makes countermeasures harder to model and reason about, creating a new challenge in validating and trusting protections. We show that a semantic approach to modeling faults makes micro-architectural models workable, and enables precise cooperation between software and hardware in the design of countermeasures. We demonstrate the approach by designing and implementing a compiler/hardware countermeasure, which protects against a state-of-the-art pipeline fetch attack that generalizes multi-fault instruction skips. Crucially, we provide a formal security proof that guarantees faults are detected by the end of every basic block. This result shows that carefully embracing the complexity of low-level systems enables finer, more secure countermeasures. @InProceedings{CC24p174, author = {Sébastien Michelland and Christophe Deleuze and Laure Gonnord}, title = {From Low-Level Fault Modeling (of a Pipeline Attack) to a Proven Hardening Scheme}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {174--185}, doi = {10.1145/3640537.3641570}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Gorantla, Pranav Sai |
CC '24: "The Next 700 ML-Enabled Compiler ..."
The Next 700 ML-Enabled Compiler Optimizations
S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla, Rajiv Shailesh Chitale, Eugene Brevdo, Albert Cohen, Mircea Trofin, and Ramakrishna Upadrasta (IIT Hyderabad, India; Google DeepMind, USA; Google DeepMind, France; Google, USA) There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler internals, raising issues with modularity, performance and framework independence. Practical deployment and transparency for the end-user are also important concerns. We propose ML-Compiler-Bridge to enable ML model development within a traditional Python framework while making end-to-end integration with an optimizing compiler possible and efficient. We evaluate it on both research and production use cases, for training and inference, over several optimization problems, multiple compilers and its versions, and gym infrastructures. @InProceedings{CC24p238, author = {S. VenkataKeerthy and Siddharth Jain and Umesh Kalvakuntla and Pranav Sai Gorantla and Rajiv Shailesh Chitale and Eugene Brevdo and Albert Cohen and Mircea Trofin and Ramakrishna Upadrasta}, title = {The Next 700 ML-Enabled Compiler Optimizations}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {238--249}, doi = {10.1145/3640537.3641580}, year = {2024}, } Publisher's Version Published Artifact Info Artifacts Available Artifacts Functional Results Reproduced |
|
Gorius, Jean-Michel |
CC '24: "A Unified Memory Dependency ..."
A Unified Memory Dependency Framework for Speculative High-Level Synthesis
Jean-Michel Gorius, Simon Rokicki, and Steven Derrien (University of Rennes - Inria - CNRS - IRISA, France) Heterogeneous hardware platforms that leverage application-specific hardware accelerators are becoming increasingly popular as the demand for high-performance compute intensive applications rises. The design of such high-performance hardware accelerators is a complex task. High-Level Synthesis (HLS) promises to ease this process by synthesizing hardware from a high-level algorithmic description. Recent works have demonstrated that speculative execution can be inferred from the latter by leveraging compilation transformation and analysis techniques in HLS flows. However, existing work on speculative HLS lacks support for the intricate memory interactions in data-processing applications. In this paper, we introduce a unified memory speculation framework, which allows aggressive scheduling and high-throughput accelerator synthesis in the presence of complex memory dependencies. We show that our technique can generate high-throughput designs for various applications and describe a complete implementation inside an existing speculative HLS toolchain. @InProceedings{CC24p13, author = {Jean-Michel Gorius and Simon Rokicki and Steven Derrien}, title = {A Unified Memory Dependency Framework for Speculative High-Level Synthesis}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {13--25}, doi = {10.1145/3640537.3641581}, year = {2024}, } Publisher's Version |
|
Gui, Yujiang |
CC '24: "A Context-Sensitive Pointer ..."
A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction
Wei Li, Dongjie He, Yujiang Gui, Wenguang Chen, and Jingling Xue (UNSW, Australia; Tsinghua University, China) Existing program analysis tools for Rust lack the ability to effectively detect security vulnerabilities due to the absence of an accurate call graph and precise points-to information. We present Rupta, the first context-sensitive pointer analysis framework designed for Rust, with a particular focus on its role in constructing call graphs. Operating on Rust MIR, Rupta employs callsite-based context-sensitivity and on-the-fly call graph construction to address a range of pointer analysis challenges, including method/function calls, pointer casts, and nested structs, while preserving type information. Our assessment of Rupta against two state-of-the-art call graph construction techniques, Rurta (Rapid Type Analysis-based) and Ruscg (static dispatch-only), across 13 real-world Rust programs demonstrates its high efficiency and precision. In particular, our results reveal that Rupta surpasses Ruscg in soundness by discovering 29% more call graph edges and outperforms Rurta in precision by eliminating approximately 70% of spurious dynamic call edges. Consequently, Rupta has the potential to enhance existing security analysis tools, enabling them to identify a greater number of security vulnerabilities in Rust programs. @InProceedings{CC24p60, author = {Wei Li and Dongjie He and Yujiang Gui and Wenguang Chen and Jingling Xue}, title = {A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {60--72}, doi = {10.1145/3640537.3641574}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Han, Ruobing |
CC '24: "Exponentially Expanding the ..."
Exponentially Expanding the Phase-Ordering Search Space via Dormant Information
Ruobing Han and Hyesoon Kim (Georgia Institute of Technology, USA) Applying compilation transformations in optimal sequences can significantly improve program speed and reduce code size. However, finding these optimal sequences—a problem known as the phase-ordering problem—remains a long-standing challenge. Specifically, modern compilers offer hundreds of available transformations, making the search space too large to explore efficiently within a reasonable timeframe. Existing solutions address this problem by grouping transformations into short sequences based on prior knowledge from human experts, and then searching for optimal orders among these sequences. Such pruning methods are aggressive, potentially excluding optimal solutions from the search space. Additionally, they rely on prior knowledge and lack scalability when applied to new transformations. In this paper, we propose a more conservative pruning approach. The insight of this new approach is to capture the dormant information and utilize it to guide the search process. By excluding dormant transformations, this approach significantly prunes the search space while retaining the optimal solutions. Moreover, it does not rely on any prior human knowledge, making it scalable to new transformations. To demonstrate the efficacy of the conservative approach, we integrate it with a classical Reinforcement Learning model, which was previously used with aggressive pruning methods. Our solution, named FlexPO, is capable of exploring a search space exponentially larger than those considered in existing solutions. Experimental results show that FlexPO generates programs that are 12% faster or 17.6% smaller than the programs produced by modern compilers. @InProceedings{CC24p250, author = {Ruobing Han and Hyesoon Kim}, title = {Exponentially Expanding the Phase-Ordering Search Space via Dormant Information}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {250--261}, doi = {10.1145/3640537.3641582}, year = {2024}, } Publisher's Version |
|
Hassman, Zack |
CC '24: "YFlows: Systematic Dataflow ..."
YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs
Cyrus Zhou, Zack Hassman, Dhirpal Shah, Vaughn Richard, and Yanjing Li (University of Chicago, USA) We address the challenges associated with deploying neural networks on CPUs, with a particular focus on minimizing inference time while maintaining accuracy. Our novel approach is to use the dataflow (i.e., computation order) of a neural network to explore data reuse opportunities using heuristic-guided analysis and a code generation framework, which enables exploration of various Single Instruction, Multiple Data (SIMD) implementations to achieve optimized neural network execution. Our results demonstrate that the dataflow that keeps outputs in SIMD registers while also maximizing both input and weight reuse consistently yields the best performance for a wide variety of inference workloads, achieving up to 3x speedup for 8-bit neural networks, and up to 4.8x speedup for binary neural networks, respectively, over the optimized implementations of neural networks today. @InProceedings{CC24p212, author = {Cyrus Zhou and Zack Hassman and Dhirpal Shah and Vaughn Richard and Yanjing Li}, title = {YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {212--226}, doi = {10.1145/3640537.3641566}, year = {2024}, } Publisher's Version |
|
He, Dongjie |
CC '24: "A Context-Sensitive Pointer ..."
A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction
Wei Li, Dongjie He, Yujiang Gui, Wenguang Chen, and Jingling Xue (UNSW, Australia; Tsinghua University, China) Existing program analysis tools for Rust lack the ability to effectively detect security vulnerabilities due to the absence of an accurate call graph and precise points-to information. We present Rupta, the first context-sensitive pointer analysis framework designed for Rust, with a particular focus on its role in constructing call graphs. Operating on Rust MIR, Rupta employs callsite-based context-sensitivity and on-the-fly call graph construction to address a range of pointer analysis challenges, including method/function calls, pointer casts, and nested structs, while preserving type information. Our assessment of Rupta against two state-of-the-art call graph construction techniques, Rurta (Rapid Type Analysis-based) and Ruscg (static dispatch-only), across 13 real-world Rust programs demonstrates its high efficiency and precision. In particular, our results reveal that Rupta surpasses Ruscg in soundness by discovering 29% more call graph edges and outperforms Rurta in precision by eliminating approximately 70% of spurious dynamic call edges. Consequently, Rupta has the potential to enhance existing security analysis tools, enabling them to identify a greater number of security vulnerabilities in Rust programs. @InProceedings{CC24p60, author = {Wei Li and Dongjie He and Yujiang Gui and Wenguang Chen and Jingling Xue}, title = {A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {60--72}, doi = {10.1145/3640537.3641574}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Jain, Siddharth |
CC '24: "The Next 700 ML-Enabled Compiler ..."
The Next 700 ML-Enabled Compiler Optimizations
S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla, Rajiv Shailesh Chitale, Eugene Brevdo, Albert Cohen, Mircea Trofin, and Ramakrishna Upadrasta (IIT Hyderabad, India; Google DeepMind, USA; Google DeepMind, France; Google, USA) There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler internals, raising issues with modularity, performance and framework independence. Practical deployment and transparency for the end-user are also important concerns. We propose ML-Compiler-Bridge to enable ML model development within a traditional Python framework while making end-to-end integration with an optimizing compiler possible and efficient. We evaluate it on both research and production use cases, for training and inference, over several optimization problems, multiple compilers and its versions, and gym infrastructures. @InProceedings{CC24p238, author = {S. VenkataKeerthy and Siddharth Jain and Umesh Kalvakuntla and Pranav Sai Gorantla and Rajiv Shailesh Chitale and Eugene Brevdo and Albert Cohen and Mircea Trofin and Ramakrishna Upadrasta}, title = {The Next 700 ML-Enabled Compiler Optimizations}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {238--249}, doi = {10.1145/3640537.3641580}, year = {2024}, } Publisher's Version Published Artifact Info Artifacts Available Artifacts Functional Results Reproduced |
|
John, Lizy |
CC '24: "BLQ: Light-Weight Locality-Aware ..."
BLQ: Light-Weight Locality-Aware Runtime for Blocking-Less Queuing
Qinzhe Wu, Ruihao Li, Jonathan Beard, and Lizy John (University of Texas at Austin, USA; Arm, USA) Message queues are used widely in parallel processing systems for worker thread synchronization. When there is a throughput mismatch between the upstream and downstream tasks, the message queue buffer will often exist as either empty or full. Polling on an empty or full queue will affect the performance of upstream or downstream threads, since such polling cycles could have been spent on other computation. Non-blocking queue is an alternative that allow polling cycles to be spared for other tasks per applications’ choice. However, application programmers are not supposed to bear the burden, because a good decision of what to do upon blocking has to take many runtime environment information into consideration. This paper proposes Blocking-Less Queuing Runtime (BLQ), a systematic solution capable of finding the proper strategies at (or before) blocking, as well as lightening the programmers’ burden. BLQ collects a set of solutions, including yielding, advanced dynamic queue buffer resizing, and resource-aware task scheduling. The evaluation on high-end servers shows that a set of diverse parallel queuing workloads could reduce blocking and lower cache misses with BLQ. BLQ outperforms the baseline runtime considerably (with up to 3.8× peak speedup). @InProceedings{CC24p100, author = {Qinzhe Wu and Ruihao Li and Jonathan Beard and Lizy John}, title = {BLQ: Light-Weight Locality-Aware Runtime for Blocking-Less Queuing}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {100--112}, doi = {10.1145/3640537.3641568}, year = {2024}, } Publisher's Version |
|
Kalvakuntla, Umesh |
CC '24: "The Next 700 ML-Enabled Compiler ..."
The Next 700 ML-Enabled Compiler Optimizations
S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla, Rajiv Shailesh Chitale, Eugene Brevdo, Albert Cohen, Mircea Trofin, and Ramakrishna Upadrasta (IIT Hyderabad, India; Google DeepMind, USA; Google DeepMind, France; Google, USA) There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler internals, raising issues with modularity, performance and framework independence. Practical deployment and transparency for the end-user are also important concerns. We propose ML-Compiler-Bridge to enable ML model development within a traditional Python framework while making end-to-end integration with an optimizing compiler possible and efficient. We evaluate it on both research and production use cases, for training and inference, over several optimization problems, multiple compilers and its versions, and gym infrastructures. @InProceedings{CC24p238, author = {S. VenkataKeerthy and Siddharth Jain and Umesh Kalvakuntla and Pranav Sai Gorantla and Rajiv Shailesh Chitale and Eugene Brevdo and Albert Cohen and Mircea Trofin and Ramakrishna Upadrasta}, title = {The Next 700 ML-Enabled Compiler Optimizations}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {238--249}, doi = {10.1145/3640537.3641580}, year = {2024}, } Publisher's Version Published Artifact Info Artifacts Available Artifacts Functional Results Reproduced |
|
Kaparounakis, Orestis |
CC '24: "CoSense: Compiler Optimizations ..."
CoSense: Compiler Optimizations using Sensor Technical Specifications
Pei Mu, Nikolaos Mavrogeorgis, Christos Vasiladiotis, Vasileios Tsoutsouras, Orestis Kaparounakis, Phillip Stanley-Marbell, and Antonio Barbalace (University of Edinburgh, United Kingdom; University of Cambridge, United Kingdom) Embedded systems are ubiquitous, but in order to maximize their lifetime on batteries there is a need for faster code execution – i.e., higher energy efficiency, and for reduced memory usage. The large number of sensors integrated into embedded systems gives us the opportunity to exploit sensors’ technical specifications, like a sensor’s value range, to guide compiler optimizations for faster code execution, small binaries, etc. We design and implement such an idea in COSENSE, a novel compiler (extension) based on the LLVM infrastructure, using an existing domain-specific language (DSL), NEWTON, to describe the bounds of and relations between physical quantities measured by sensors. COSENSE utilizes previously unexploited physical information correlated to program variables to drive code optimizations. COSENSE computes value ranges of variables and proceeds to overload functions, compress variable types, substitute code with constants and simplify the condition statements. We evaluated COSENSE using several microbenchmarks and two real-world applications on various platforms and CPUs. For microbenchmarks, COSENSE achieves 1.18× geomean speedup in execution time and 12.35% reduction on average in binary code size with 4.66% compilation time overhead on x86, and 1.23× geomean speedup in execution time and 10.95% reduction on average in binary code size with 5.67% compilation time overhead on ARM. For real-world applications, COSENSE achieves 1.70× and 1.50× speedup in execution time, 12.96% and 0.60% binary code reduction, 9.69% and 30.43% lower energy consumption, with a 26.58% and 24.01% compilation time overhead, respectively. @InProceedings{CC24p73, author = {Pei Mu and Nikolaos Mavrogeorgis and Christos Vasiladiotis and Vasileios Tsoutsouras and Orestis Kaparounakis and Phillip Stanley-Marbell and Antonio Barbalace}, title = {CoSense: Compiler Optimizations using Sensor Technical Specifications}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {73--85}, doi = {10.1145/3640537.3641576}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Functional Results Reproduced |
|
Kell, Stephen |
CC '24: "Accurate Coverage Metrics ..."
Accurate Coverage Metrics for Compiler-Generated Debugging Information
J. Ryan Stinnett and Stephen Kell (King’s College London, United Kingdom) Many debugging tools rely on compiler-produced metadata to present a source-language view of program states, such as variable values and source line numbers. While this tends to work for unoptimised programs, current compilers often generate only partial debugging information in optimised programs. Current approaches for measuring the extent of coverage of local variables are based on crude assumptions (for example, assuming variables could cover their whole parent scope) and are not comparable from one compilation to another. In this work, we propose some new metrics, computable by our tools, which could serve as motivation for language implementations to improve debugging quality. @InProceedings{CC24p126, author = {J. Ryan Stinnett and Stephen Kell}, title = {Accurate Coverage Metrics for Compiler-Generated Debugging Information}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {126--136}, doi = {10.1145/3640537.3641578}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available |
|
Khordadi, Amir |
CC '24: "UNIFICO: Thread Migration ..."
UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation
Nikolaos Mavrogeorgis, Christos Vasiladiotis, Pei Mu, Amir Khordadi, Björn Franke, and Antonio Barbalace (University of Edinburgh, United Kingdom) Heterogeneous-ISA processor designs have attracted considerable research interest. However, unlike their homogeneous-ISA counterparts, explicit software support for bridging ISA heterogeneity is required. The lack of a compilation toolchain ready to support heterogeneous-ISA targets has been a major factor hindering research in this exciting emerging area. For any such compiler “getting right” the mechanics involved in state transformation upon migration and doing this efficiently is of critical importance. In particular, any runtime conversion of the current program stack from one architecture to another would be prohibitively expensive. In this paper, we design and develop Unifico, a new multi-ISA compiler that generates binaries that maintain the same stack layout during their execution on either architecture. Unifico avoids the need for runtime stack transformation, thus eliminating overheads associated with ISA migration. Additional responsibilities of the Unifico compiler backend include maintenance of a uniform ABI and virtual address space across ISAs. Unifico is implemented using the LLVM compiler infrastructure, and we are currently targeting the x86-64 and ARMv8 ISAs. We have evaluated Unifico across a range of compute-intensive NAS benchmarks and show its minimal impact on overall execution time, where less than 6% overhead is introduced on average. When compared against the state-of-the-art Popcorn compiler, Unifico reduces binary size overhead from ∼200% to ∼10%, whilst eliminating the stack transformation overhead during ISA migration. @InProceedings{CC24p86, author = {Nikolaos Mavrogeorgis and Christos Vasiladiotis and Pei Mu and Amir Khordadi and Björn Franke and Antonio Barbalace}, title = {UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {86--99}, doi = {10.1145/3640537.3641565}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Kim, Hyesoon |
CC '24: "Exponentially Expanding the ..."
Exponentially Expanding the Phase-Ordering Search Space via Dormant Information
Ruobing Han and Hyesoon Kim (Georgia Institute of Technology, USA) Applying compilation transformations in optimal sequences can significantly improve program speed and reduce code size. However, finding these optimal sequences—a problem known as the phase-ordering problem—remains a long-standing challenge. Specifically, modern compilers offer hundreds of available transformations, making the search space too large to explore efficiently within a reasonable timeframe. Existing solutions address this problem by grouping transformations into short sequences based on prior knowledge from human experts, and then searching for optimal orders among these sequences. Such pruning methods are aggressive, potentially excluding optimal solutions from the search space. Additionally, they rely on prior knowledge and lack scalability when applied to new transformations. In this paper, we propose a more conservative pruning approach. The insight of this new approach is to capture the dormant information and utilize it to guide the search process. By excluding dormant transformations, this approach significantly prunes the search space while retaining the optimal solutions. Moreover, it does not rely on any prior human knowledge, making it scalable to new transformations. To demonstrate the efficacy of the conservative approach, we integrate it with a classical Reinforcement Learning model, which was previously used with aggressive pruning methods. Our solution, named FlexPO, is capable of exploring a search space exponentially larger than those considered in existing solutions. Experimental results show that FlexPO generates programs that are 12% faster or 17.6% smaller than the programs produced by modern compilers. @InProceedings{CC24p250, author = {Ruobing Han and Hyesoon Kim}, title = {Exponentially Expanding the Phase-Ordering Search Space via Dormant Information}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {250--261}, doi = {10.1145/3640537.3641582}, year = {2024}, } Publisher's Version |
|
L. De Carvalho, João P. |
CC '24: "Region-Based Data Layout via ..."
Region-Based Data Layout via Data Reuse Analysis
Caio Salvador Rohwedder, João P. L. De Carvalho, and José Nelson Amaral (University of Alberta, Canada) Data-structure splicing techniques, such as structure splitting, field reordering, and pointer inlining reorganize data structures to improve cache and translation look-aside buffer (TLB) utilization. Structure types are typically transformed globally in the program, requiring updates to all references to elements of a transformed type. These techniques often rely on instrumentation, tracing, or sampling to create models that guide their transformations. Furthermore, compilers often cannot prove that their transformations are legal and must rely on manual inspection and manual transformation. Applying data-layout transformations locally -- as opposed to globally -- to regions of code removes the need for expensive profiling and simplifies legality verification. This work introduces RebaseDL, a static analysis that finds profitable and legal region-based data layout transformation opportunities that improve access locality. These opportunities are found within code regions that exhibit data reuse. Going beyond structure splicing, RebaseDL also identifies transformation opportunities that do not involve structure types, that is, it identifies data packing transformations. The analysis is implemented in LLVM and it detects multiple transformation opportunities within the SPEC CPU benchmark suite, where the transformation obtains speedups of up to 1.34x for transformed regions. @InProceedings{CC24p49, author = {Caio Salvador Rohwedder and João P. L. De Carvalho and José Nelson Amaral}, title = {Region-Based Data Layout via Data Reuse Analysis}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {49--59}, doi = {10.1145/3640537.3641571}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Li, Ruihao |
CC '24: "BLQ: Light-Weight Locality-Aware ..."
BLQ: Light-Weight Locality-Aware Runtime for Blocking-Less Queuing
Qinzhe Wu, Ruihao Li, Jonathan Beard, and Lizy John (University of Texas at Austin, USA; Arm, USA) Message queues are used widely in parallel processing systems for worker thread synchronization. When there is a throughput mismatch between the upstream and downstream tasks, the message queue buffer will often exist as either empty or full. Polling on an empty or full queue will affect the performance of upstream or downstream threads, since such polling cycles could have been spent on other computation. Non-blocking queue is an alternative that allow polling cycles to be spared for other tasks per applications’ choice. However, application programmers are not supposed to bear the burden, because a good decision of what to do upon blocking has to take many runtime environment information into consideration. This paper proposes Blocking-Less Queuing Runtime (BLQ), a systematic solution capable of finding the proper strategies at (or before) blocking, as well as lightening the programmers’ burden. BLQ collects a set of solutions, including yielding, advanced dynamic queue buffer resizing, and resource-aware task scheduling. The evaluation on high-end servers shows that a set of diverse parallel queuing workloads could reduce blocking and lower cache misses with BLQ. BLQ outperforms the baseline runtime considerably (with up to 3.8× peak speedup). @InProceedings{CC24p100, author = {Qinzhe Wu and Ruihao Li and Jonathan Beard and Lizy John}, title = {BLQ: Light-Weight Locality-Aware Runtime for Blocking-Less Queuing}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {100--112}, doi = {10.1145/3640537.3641568}, year = {2024}, } Publisher's Version |
|
Li, Wei |
CC '24: "A Context-Sensitive Pointer ..."
A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction
Wei Li, Dongjie He, Yujiang Gui, Wenguang Chen, and Jingling Xue (UNSW, Australia; Tsinghua University, China) Existing program analysis tools for Rust lack the ability to effectively detect security vulnerabilities due to the absence of an accurate call graph and precise points-to information. We present Rupta, the first context-sensitive pointer analysis framework designed for Rust, with a particular focus on its role in constructing call graphs. Operating on Rust MIR, Rupta employs callsite-based context-sensitivity and on-the-fly call graph construction to address a range of pointer analysis challenges, including method/function calls, pointer casts, and nested structs, while preserving type information. Our assessment of Rupta against two state-of-the-art call graph construction techniques, Rurta (Rapid Type Analysis-based) and Ruscg (static dispatch-only), across 13 real-world Rust programs demonstrates its high efficiency and precision. In particular, our results reveal that Rupta surpasses Ruscg in soundness by discovering 29% more call graph edges and outperforms Rurta in precision by eliminating approximately 70% of spurious dynamic call edges. Consequently, Rupta has the potential to enhance existing security analysis tools, enabling them to identify a greater number of security vulnerabilities in Rust programs. @InProceedings{CC24p60, author = {Wei Li and Dongjie He and Yujiang Gui and Wenguang Chen and Jingling Xue}, title = {A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {60--72}, doi = {10.1145/3640537.3641574}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Li, Yanjing |
CC '24: "YFlows: Systematic Dataflow ..."
YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs
Cyrus Zhou, Zack Hassman, Dhirpal Shah, Vaughn Richard, and Yanjing Li (University of Chicago, USA) We address the challenges associated with deploying neural networks on CPUs, with a particular focus on minimizing inference time while maintaining accuracy. Our novel approach is to use the dataflow (i.e., computation order) of a neural network to explore data reuse opportunities using heuristic-guided analysis and a code generation framework, which enables exploration of various Single Instruction, Multiple Data (SIMD) implementations to achieve optimized neural network execution. Our results demonstrate that the dataflow that keeps outputs in SIMD registers while also maximizing both input and weight reuse consistently yields the best performance for a wide variety of inference workloads, achieving up to 3x speedup for 8-bit neural networks, and up to 4.8x speedup for binary neural networks, respectively, over the optimized implementations of neural networks today. @InProceedings{CC24p212, author = {Cyrus Zhou and Zack Hassman and Dhirpal Shah and Vaughn Richard and Yanjing Li}, title = {YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {212--226}, doi = {10.1145/3640537.3641566}, year = {2024}, } Publisher's Version |
|
Lucia, Brandon |
CC '24: "Compiler-Based Memory Encryption ..."
Compiler-Based Memory Encryption for Machine Learning on Commodity Low-Power Devices
Kiwan Maeng and Brandon Lucia (Pennsylvania State University, USA; Carnegie Mellon University, USA) Running machine learning (ML) on low-power IoT devices exposes unique security concerns. Attackers can easily steal or manipulate sensitive user data or proprietary ML models from the devices’ off-chip memory by leveraging their simple hardware structure and the lack of memory encryption hardware. To protect against these real-world threats, we propose a lightweight compiler-based memory encryption scheme, Spitz. Spitz achieves full off-chip memory encryption only with common architectural components on commodity devices, such as programmable on-chip SRAM, AES hardware, and Direct-Memory Access (DMA). Our evaluation on real hardware shows that Spitz maintains competitive performance while realizing full off-chip memory encryption. Spitz is only 1.16–1.73× slower than our best-effort non-secure baseline, and is even faster by 1.5–2.23× compared to a non-secure popular vendor library. @InProceedings{CC24p198, author = {Kiwan Maeng and Brandon Lucia}, title = {Compiler-Based Memory Encryption for Machine Learning on Commodity Low-Power Devices}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {198--211}, doi = {10.1145/3640537.3641564}, year = {2024}, } Publisher's Version |
|
Maeng, Kiwan |
CC '24: "Compiler-Based Memory Encryption ..."
Compiler-Based Memory Encryption for Machine Learning on Commodity Low-Power Devices
Kiwan Maeng and Brandon Lucia (Pennsylvania State University, USA; Carnegie Mellon University, USA) Running machine learning (ML) on low-power IoT devices exposes unique security concerns. Attackers can easily steal or manipulate sensitive user data or proprietary ML models from the devices’ off-chip memory by leveraging their simple hardware structure and the lack of memory encryption hardware. To protect against these real-world threats, we propose a lightweight compiler-based memory encryption scheme, Spitz. Spitz achieves full off-chip memory encryption only with common architectural components on commodity devices, such as programmable on-chip SRAM, AES hardware, and Direct-Memory Access (DMA). Our evaluation on real hardware shows that Spitz maintains competitive performance while realizing full off-chip memory encryption. Spitz is only 1.16–1.73× slower than our best-effort non-secure baseline, and is even faster by 1.5–2.23× compared to a non-secure popular vendor library. @InProceedings{CC24p198, author = {Kiwan Maeng and Brandon Lucia}, title = {Compiler-Based Memory Encryption for Machine Learning on Commodity Low-Power Devices}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {198--211}, doi = {10.1145/3640537.3641564}, year = {2024}, } Publisher's Version |
|
Mavrogeorgis, Nikolaos |
CC '24: "UNIFICO: Thread Migration ..."
UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation
Nikolaos Mavrogeorgis, Christos Vasiladiotis, Pei Mu, Amir Khordadi, Björn Franke, and Antonio Barbalace (University of Edinburgh, United Kingdom) Heterogeneous-ISA processor designs have attracted considerable research interest. However, unlike their homogeneous-ISA counterparts, explicit software support for bridging ISA heterogeneity is required. The lack of a compilation toolchain ready to support heterogeneous-ISA targets has been a major factor hindering research in this exciting emerging area. For any such compiler “getting right” the mechanics involved in state transformation upon migration and doing this efficiently is of critical importance. In particular, any runtime conversion of the current program stack from one architecture to another would be prohibitively expensive. In this paper, we design and develop Unifico, a new multi-ISA compiler that generates binaries that maintain the same stack layout during their execution on either architecture. Unifico avoids the need for runtime stack transformation, thus eliminating overheads associated with ISA migration. Additional responsibilities of the Unifico compiler backend include maintenance of a uniform ABI and virtual address space across ISAs. Unifico is implemented using the LLVM compiler infrastructure, and we are currently targeting the x86-64 and ARMv8 ISAs. We have evaluated Unifico across a range of compute-intensive NAS benchmarks and show its minimal impact on overall execution time, where less than 6% overhead is introduced on average. When compared against the state-of-the-art Popcorn compiler, Unifico reduces binary size overhead from ∼200% to ∼10%, whilst eliminating the stack transformation overhead during ISA migration. @InProceedings{CC24p86, author = {Nikolaos Mavrogeorgis and Christos Vasiladiotis and Pei Mu and Amir Khordadi and Björn Franke and Antonio Barbalace}, title = {UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {86--99}, doi = {10.1145/3640537.3641565}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced CC '24: "CoSense: Compiler Optimizations ..." CoSense: Compiler Optimizations using Sensor Technical Specifications Pei Mu, Nikolaos Mavrogeorgis, Christos Vasiladiotis, Vasileios Tsoutsouras, Orestis Kaparounakis, Phillip Stanley-Marbell, and Antonio Barbalace (University of Edinburgh, United Kingdom; University of Cambridge, United Kingdom) Embedded systems are ubiquitous, but in order to maximize their lifetime on batteries there is a need for faster code execution – i.e., higher energy efficiency, and for reduced memory usage. The large number of sensors integrated into embedded systems gives us the opportunity to exploit sensors’ technical specifications, like a sensor’s value range, to guide compiler optimizations for faster code execution, small binaries, etc. We design and implement such an idea in COSENSE, a novel compiler (extension) based on the LLVM infrastructure, using an existing domain-specific language (DSL), NEWTON, to describe the bounds of and relations between physical quantities measured by sensors. COSENSE utilizes previously unexploited physical information correlated to program variables to drive code optimizations. COSENSE computes value ranges of variables and proceeds to overload functions, compress variable types, substitute code with constants and simplify the condition statements. We evaluated COSENSE using several microbenchmarks and two real-world applications on various platforms and CPUs. For microbenchmarks, COSENSE achieves 1.18× geomean speedup in execution time and 12.35% reduction on average in binary code size with 4.66% compilation time overhead on x86, and 1.23× geomean speedup in execution time and 10.95% reduction on average in binary code size with 5.67% compilation time overhead on ARM. For real-world applications, COSENSE achieves 1.70× and 1.50× speedup in execution time, 12.96% and 0.60% binary code reduction, 9.69% and 30.43% lower energy consumption, with a 26.58% and 24.01% compilation time overhead, respectively. @InProceedings{CC24p73, author = {Pei Mu and Nikolaos Mavrogeorgis and Christos Vasiladiotis and Vasileios Tsoutsouras and Orestis Kaparounakis and Phillip Stanley-Marbell and Antonio Barbalace}, title = {CoSense: Compiler Optimizations using Sensor Technical Specifications}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {73--85}, doi = {10.1145/3640537.3641576}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Functional Results Reproduced |
|
Michelland, Sébastien |
CC '24: "From Low-Level Fault Modeling ..."
From Low-Level Fault Modeling (of a Pipeline Attack) to a Proven Hardening Scheme
Sébastien Michelland, Christophe Deleuze, and Laure Gonnord (Université Grenoble Alpes, France) Fault attacks present unique safety and security challenges that require dedicated countermeasures, even for bug-free programs. Models of these complex attacks are made workable by approximating their effects to a suitable level of abstraction. The common practice of targeting the Instruction Set Architecture (ISA) level isn't ideal because it discards important micro-architectural information, leading to weaker security guarantees. Conversely, including micro-architectural details makes countermeasures harder to model and reason about, creating a new challenge in validating and trusting protections. We show that a semantic approach to modeling faults makes micro-architectural models workable, and enables precise cooperation between software and hardware in the design of countermeasures. We demonstrate the approach by designing and implementing a compiler/hardware countermeasure, which protects against a state-of-the-art pipeline fetch attack that generalizes multi-fault instruction skips. Crucially, we provide a formal security proof that guarantees faults are detected by the end of every basic block. This result shows that carefully embracing the complexity of low-level systems enables finer, more secure countermeasures. @InProceedings{CC24p174, author = {Sébastien Michelland and Christophe Deleuze and Laure Gonnord}, title = {From Low-Level Fault Modeling (of a Pipeline Attack) to a Proven Hardening Scheme}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {174--185}, doi = {10.1145/3640537.3641570}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Mu, Pei |
CC '24: "UNIFICO: Thread Migration ..."
UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation
Nikolaos Mavrogeorgis, Christos Vasiladiotis, Pei Mu, Amir Khordadi, Björn Franke, and Antonio Barbalace (University of Edinburgh, United Kingdom) Heterogeneous-ISA processor designs have attracted considerable research interest. However, unlike their homogeneous-ISA counterparts, explicit software support for bridging ISA heterogeneity is required. The lack of a compilation toolchain ready to support heterogeneous-ISA targets has been a major factor hindering research in this exciting emerging area. For any such compiler “getting right” the mechanics involved in state transformation upon migration and doing this efficiently is of critical importance. In particular, any runtime conversion of the current program stack from one architecture to another would be prohibitively expensive. In this paper, we design and develop Unifico, a new multi-ISA compiler that generates binaries that maintain the same stack layout during their execution on either architecture. Unifico avoids the need for runtime stack transformation, thus eliminating overheads associated with ISA migration. Additional responsibilities of the Unifico compiler backend include maintenance of a uniform ABI and virtual address space across ISAs. Unifico is implemented using the LLVM compiler infrastructure, and we are currently targeting the x86-64 and ARMv8 ISAs. We have evaluated Unifico across a range of compute-intensive NAS benchmarks and show its minimal impact on overall execution time, where less than 6% overhead is introduced on average. When compared against the state-of-the-art Popcorn compiler, Unifico reduces binary size overhead from ∼200% to ∼10%, whilst eliminating the stack transformation overhead during ISA migration. @InProceedings{CC24p86, author = {Nikolaos Mavrogeorgis and Christos Vasiladiotis and Pei Mu and Amir Khordadi and Björn Franke and Antonio Barbalace}, title = {UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {86--99}, doi = {10.1145/3640537.3641565}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced CC '24: "CoSense: Compiler Optimizations ..." CoSense: Compiler Optimizations using Sensor Technical Specifications Pei Mu, Nikolaos Mavrogeorgis, Christos Vasiladiotis, Vasileios Tsoutsouras, Orestis Kaparounakis, Phillip Stanley-Marbell, and Antonio Barbalace (University of Edinburgh, United Kingdom; University of Cambridge, United Kingdom) Embedded systems are ubiquitous, but in order to maximize their lifetime on batteries there is a need for faster code execution – i.e., higher energy efficiency, and for reduced memory usage. The large number of sensors integrated into embedded systems gives us the opportunity to exploit sensors’ technical specifications, like a sensor’s value range, to guide compiler optimizations for faster code execution, small binaries, etc. We design and implement such an idea in COSENSE, a novel compiler (extension) based on the LLVM infrastructure, using an existing domain-specific language (DSL), NEWTON, to describe the bounds of and relations between physical quantities measured by sensors. COSENSE utilizes previously unexploited physical information correlated to program variables to drive code optimizations. COSENSE computes value ranges of variables and proceeds to overload functions, compress variable types, substitute code with constants and simplify the condition statements. We evaluated COSENSE using several microbenchmarks and two real-world applications on various platforms and CPUs. For microbenchmarks, COSENSE achieves 1.18× geomean speedup in execution time and 12.35% reduction on average in binary code size with 4.66% compilation time overhead on x86, and 1.23× geomean speedup in execution time and 10.95% reduction on average in binary code size with 5.67% compilation time overhead on ARM. For real-world applications, COSENSE achieves 1.70× and 1.50× speedup in execution time, 12.96% and 0.60% binary code reduction, 9.69% and 30.43% lower energy consumption, with a 26.58% and 24.01% compilation time overhead, respectively. @InProceedings{CC24p73, author = {Pei Mu and Nikolaos Mavrogeorgis and Christos Vasiladiotis and Vasileios Tsoutsouras and Orestis Kaparounakis and Phillip Stanley-Marbell and Antonio Barbalace}, title = {CoSense: Compiler Optimizations using Sensor Technical Specifications}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {73--85}, doi = {10.1145/3640537.3641576}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Functional Results Reproduced |
|
Nahian, Ahamed Al |
CC '24: "FlowProf: Profiling Multi-threaded ..."
FlowProf: Profiling Multi-threaded Programs using Information-Flow
Ahamed Al Nahian and Brian Demsky (University of California, Irvine, USA) Amdahl's law implies that even small sequential bottlenecks can seriously limit the scalability of multi-threaded programs. To achieve scalability, developers must painstakingly identify sequential bottlenecks in their program and eliminate these bottlenecks by either changing synchronization strategies or rearchitecting and rewriting any code with sequential bottlenecks. This can require significant effort by the developer to find and understand how to fix sequential bottlenecks. To address the issue, we bring a new tool, information flow, to the problem of understanding sequential bottlenecks. Information flow can help developers understand whether a bottleneck is fundamental to the computation, or merely an artifact of the implementation. First, our strategy tracks memory access conflicts to find over-synchronized applications where redesigning the synchronization strategy on existing implementation can improve performance. Then, information flow analysis finds optimization opportunities where changing the existing implementation can improve performance of applications that have bottlenecks due to unnecessary memory access conflicts. We implemented this in FlowProf. We have evaluated FlowProf on a set of multi-threaded Java applications where the generated optimization insights achieve performance gains of up to 58%. @InProceedings{CC24p137, author = {Ahamed Al Nahian and Brian Demsky}, title = {FlowProf: Profiling Multi-threaded Programs using Information-Flow}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {137--149}, doi = {10.1145/3640537.3641577}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available |
|
Nuzman, Dorit |
CC '24: "If-Convert as Early as You ..."
If-Convert as Early as You Must
Dorit Nuzman, Ayal Zaks, and Ziv Ben-Zion (Mobileye, Israel) Optimizing compilers employ a rich set of transformations that generate highly efficient code for a variety of source languages and target architectures. These transformations typically operate on general control flow constructs which trigger a range of optimization opportunities, such as moving code to less frequently executed paths, and more. Regular loop nests are specifically relevant for accelerating certain domains, leveraging architectural features including vector instructions, hardware-controlled loops and data flows, provided their internal control-flow is eliminated. Compilers typically apply predicating if-conversion late, in their backend, to remove control-flow undesired by the target. Until then, transformations triggered by control-flow constructs that are destined to be removed may end up doing more harm than good. We present an approach that leverages the existing powerful and general optimization flow of LLVM when compiling for targets without control-flow in loops. Rather than trying to teach various transformations how to avoid misoptimizing for such targets, we propose to introduce an aggressive if-conversion pass as early as possible, along with carefully addressing pass-ordering implications. This solution outperforms the traditional compilation flow with only a modest tuning effort, thereby offering a robust and promising compilation approach for branch-restricted targets. @InProceedings{CC24p26, author = {Dorit Nuzman and Ayal Zaks and Ziv Ben-Zion}, title = {If-Convert as Early as You Must}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {26--38}, doi = {10.1145/3640537.3641562}, year = {2024}, } Publisher's Version |
|
Panchenko, Maksim |
CC '24: "Stale Profile Matching ..."
Stale Profile Matching
Amir Ayupov, Maksim Panchenko, and Sergey Pupyrev (Meta, USA) Profile-guided optimizations rely on profile data for directing compilers to generate optimized code. To achieve the maximum performance boost, profile data needs to be collected on the same version of the binary that is being optimized. In practice however, there is typically a gap between the profile collection and the release, which makes a portion of the profile invalid for optimizations. This phenomenon is known as profile staleness, and it is a serious practical problem for data-center workloads both for compilers and binary optimizers. In this paper we thoroughly study the staleness problem and propose the first practical solution for utilizing profiles collected on binaries built from several revisions behind the release. Our algorithm is developed and implemented in a mainstream open-source post-link optimizer, BOLT. An extensive evaluation on a variety of standalone benchmarks and production services indicates that the new method recovers up to 0.8 of the maximum BOLT benefit, even when most of the input profile data is stale and would have been discarded by the optimizer otherwise. @InProceedings{CC24p162, author = {Amir Ayupov and Maksim Panchenko and Sergey Pupyrev}, title = {Stale Profile Matching}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {162--173}, doi = {10.1145/3640537.3641573}, year = {2024}, } Publisher's Version |
|
Pereira, Fernando Magno Quintão |
CC '24: "Reducing the Overhead of Exact ..."
Reducing the Overhead of Exact Profiling by Reusing Affine Variables
Leon Frenot and Fernando Magno Quintão Pereira (ENS Lyon, France; Federal University of Minas Gerais, Brazil) An exact profiler inserts counters in a program to record how many times each edge of that program's control-flow graph has been traversed during an execution of it. It is common practice to instrument only edges in the complement of a minimum spanning tree of the program's control-flow graph, following the algorithm proposed by Knuth and Stevenson in 1973. Yet, even with this optimization, the overhead of exact profiling is high. As a consequence, mainstream profile-guided code optimizers resort to sampling, i.e., approximate, profiling, instead of exact frequency counts. This paper introduces a technique to reduce the overhead of exact profiling. We show that it is possible to use the values of variables incremented by constant steps within loops---henceforth called SESE counters---as a replacement for some profiling counters. Such affine variables are common, for they include the induction variable of typical loops. This technique, although simple, is effective. We have implemented it in the LLVM compilation infrastructure. Standard Knuth-Stevenson instrumentation increases the running time of the 135 programs in the LLVM test suite from 648 seconds to 817. The optimization suggested in this paper brings this time down to 738 seconds. In the 949 Jotai programs, standard instrumentation increases the number of processed x86 instructions from 2.96 billion to 3.34 billion, whereas the proposed technique causes 3.07 billion instructions to be fetched. @InProceedings{CC24p150, author = {Leon Frenot and Fernando Magno Quintão Pereira}, title = {Reducing the Overhead of Exact Profiling by Reusing Affine Variables}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {150--161}, doi = {10.1145/3640537.3641569}, year = {2024}, } Publisher's Version |
|
Puaut, Isabelle |
CC '24: "Fast and Accurate Context-Aware ..."
Fast and Accurate Context-Aware Basic Block Timing Prediction using Transformers
Abderaouf Nassim Amalou, Elisa Fromont, and Isabelle Puaut (University of Rennes - Inria - CNRS - IRISA, France; University of Rennes - IUF - Inria - CNRS - IRISA, France) This paper introduces ORXESTRA, a context-aware execution time prediction model based on Transformers XL, specifically designed to accurately estimate performance in embedded system applications. Unlike traditional machine learning models that often overlook contextual information, resulting in biased predictions for individual isolated basic blocks, ORXESTRA overcomes this limitation by incorporating execution context awareness. By doing so, ORXESTRA effectively accounts for the processor micro-architecture without explicitly modeling micro-architectural elements such as caches, pipelines, and branch predictors. Our evaluations demonstrate ORXESTRA's ability to provide precise timing estimations for different ARM targets (Cortex M4, M7, A53, and A72), surpassing existing machine learning-based approaches in both prediction accuracy and prediction speed. @InProceedings{CC24p227, author = {Abderaouf Nassim Amalou and Elisa Fromont and Isabelle Puaut}, title = {Fast and Accurate Context-Aware Basic Block Timing Prediction using Transformers}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {227--237}, doi = {10.1145/3640537.3641572}, year = {2024}, } Publisher's Version |
|
Pupyrev, Sergey |
CC '24: "Stale Profile Matching ..."
Stale Profile Matching
Amir Ayupov, Maksim Panchenko, and Sergey Pupyrev (Meta, USA) Profile-guided optimizations rely on profile data for directing compilers to generate optimized code. To achieve the maximum performance boost, profile data needs to be collected on the same version of the binary that is being optimized. In practice however, there is typically a gap between the profile collection and the release, which makes a portion of the profile invalid for optimizations. This phenomenon is known as profile staleness, and it is a serious practical problem for data-center workloads both for compilers and binary optimizers. In this paper we thoroughly study the staleness problem and propose the first practical solution for utilizing profiles collected on binaries built from several revisions behind the release. Our algorithm is developed and implemented in a mainstream open-source post-link optimizer, BOLT. An extensive evaluation on a variety of standalone benchmarks and production services indicates that the new method recovers up to 0.8 of the maximum BOLT benefit, even when most of the input profile data is stale and would have been discarded by the optimizer otherwise. @InProceedings{CC24p162, author = {Amir Ayupov and Maksim Panchenko and Sergey Pupyrev}, title = {Stale Profile Matching}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {162--173}, doi = {10.1145/3640537.3641573}, year = {2024}, } Publisher's Version |
|
Reichenbach, Christoph |
CC '24: "Clog: A Declarative Language ..."
Clog: A Declarative Language for C Static Code Checkers
Alexandru Dura and Christoph Reichenbach (Lund University, Sweden) We present Clog, a declarative language for describing static code checkers for C. Unlike other extensible state-of-the-art checker frameworks, Clog enables powerful interprocedural checkers without exposing the underlying program representation: Clog checkers consist of Datalog-style recursive rules that access the program under analysis via syntactic pattern matching and control flow edges only. We have implemented Clog on top of Clang, using a custom Datalog evaluation strategy that piggy-backs on Clang's AST matching facilities while working around Clang's limitations to achieve our design goal of representation independence. Our experiments demonstrate that Clog can concisely express a wide variety of checkers for different security vulnerabilities, with performance that is similar to Clang's own analyses and highly competitive on real-world programs. @InProceedings{CC24p186, author = {Alexandru Dura and Christoph Reichenbach}, title = {Clog: A Declarative Language for C Static Code Checkers}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {186--197}, doi = {10.1145/3640537.3641579}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Richard, Vaughn |
CC '24: "YFlows: Systematic Dataflow ..."
YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs
Cyrus Zhou, Zack Hassman, Dhirpal Shah, Vaughn Richard, and Yanjing Li (University of Chicago, USA) We address the challenges associated with deploying neural networks on CPUs, with a particular focus on minimizing inference time while maintaining accuracy. Our novel approach is to use the dataflow (i.e., computation order) of a neural network to explore data reuse opportunities using heuristic-guided analysis and a code generation framework, which enables exploration of various Single Instruction, Multiple Data (SIMD) implementations to achieve optimized neural network execution. Our results demonstrate that the dataflow that keeps outputs in SIMD registers while also maximizing both input and weight reuse consistently yields the best performance for a wide variety of inference workloads, achieving up to 3x speedup for 8-bit neural networks, and up to 4.8x speedup for binary neural networks, respectively, over the optimized implementations of neural networks today. @InProceedings{CC24p212, author = {Cyrus Zhou and Zack Hassman and Dhirpal Shah and Vaughn Richard and Yanjing Li}, title = {YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {212--226}, doi = {10.1145/3640537.3641566}, year = {2024}, } Publisher's Version |
|
Rokicki, Simon |
CC '24: "A Unified Memory Dependency ..."
A Unified Memory Dependency Framework for Speculative High-Level Synthesis
Jean-Michel Gorius, Simon Rokicki, and Steven Derrien (University of Rennes - Inria - CNRS - IRISA, France) Heterogeneous hardware platforms that leverage application-specific hardware accelerators are becoming increasingly popular as the demand for high-performance compute intensive applications rises. The design of such high-performance hardware accelerators is a complex task. High-Level Synthesis (HLS) promises to ease this process by synthesizing hardware from a high-level algorithmic description. Recent works have demonstrated that speculative execution can be inferred from the latter by leveraging compilation transformation and analysis techniques in HLS flows. However, existing work on speculative HLS lacks support for the intricate memory interactions in data-processing applications. In this paper, we introduce a unified memory speculation framework, which allows aggressive scheduling and high-throughput accelerator synthesis in the presence of complex memory dependencies. We show that our technique can generate high-throughput designs for various applications and describe a complete implementation inside an existing speculative HLS toolchain. @InProceedings{CC24p13, author = {Jean-Michel Gorius and Simon Rokicki and Steven Derrien}, title = {A Unified Memory Dependency Framework for Speculative High-Level Synthesis}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {13--25}, doi = {10.1145/3640537.3641581}, year = {2024}, } Publisher's Version |
|
Salvador Rohwedder, Caio |
CC '24: "Region-Based Data Layout via ..."
Region-Based Data Layout via Data Reuse Analysis
Caio Salvador Rohwedder, João P. L. De Carvalho, and José Nelson Amaral (University of Alberta, Canada) Data-structure splicing techniques, such as structure splitting, field reordering, and pointer inlining reorganize data structures to improve cache and translation look-aside buffer (TLB) utilization. Structure types are typically transformed globally in the program, requiring updates to all references to elements of a transformed type. These techniques often rely on instrumentation, tracing, or sampling to create models that guide their transformations. Furthermore, compilers often cannot prove that their transformations are legal and must rely on manual inspection and manual transformation. Applying data-layout transformations locally -- as opposed to globally -- to regions of code removes the need for expensive profiling and simplifies legality verification. This work introduces RebaseDL, a static analysis that finds profitable and legal region-based data layout transformation opportunities that improve access locality. These opportunities are found within code regions that exhibit data reuse. Going beyond structure splicing, RebaseDL also identifies transformation opportunities that do not involve structure types, that is, it identifies data packing transformations. The analysis is implemented in LLVM and it detects multiple transformation opportunities within the SPEC CPU benchmark suite, where the transformation obtains speedups of up to 1.34x for transformed regions. @InProceedings{CC24p49, author = {Caio Salvador Rohwedder and João P. L. De Carvalho and José Nelson Amaral}, title = {Region-Based Data Layout via Data Reuse Analysis}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {49--59}, doi = {10.1145/3640537.3641571}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Sarkar, Vivek |
CC '24: "APPy: Annotated Parallelism ..."
APPy: Annotated Parallelism for Python on GPUs
Tong Zhou, Jun Shirako, and Vivek Sarkar (Georgia Institute of Technology, USA) GPUs are increasingly being used used to speed up Python applications in the scientific computing and machine learning domains. Currently, the two common approaches to leveraging GPU acceleration in Python are 1) create a custom native GPU kernel, and import it as a function that can be called from Python; 2) use libraries such as CuPy, which provides pre-defined GPU-implementation-backed tensor operators. The first approach is very flexible but requires tremendous manual effort to create a correct and high performance GPU kernel. While the second approach dramatically improves productivity, it is limited in its generality, as many applications cannot be expressed purely using CuPy’s pre-defined tensor operators. Additionally, redundant memory access can often occur between adjacent tensor operators due to the materialization of intermediate results. In this work, we present APPy (Annotated Parallelism for Python), which enables users to parallelize generic Python loops and tensor expressions for execution on GPUs by adding simple compiler directives (annotations) to Python code. Empirical evaluation on 20 scientific computing kernels from the literature on a server with an AMD Ryzen 7 5800X 8-Core CPU and an NVIDIA RTX 3090 GPU demonstrates that with simple pragmas APPy is able to generate more efficient GPU code and achieves significant geometric mean speedup relative to CuPy (30× on average), and to three state-of-the-art Python compilers, Numba (8.3× on average), DaCe-GPU (3.1× on average) and JAX-GPU (18.8× on average). @InProceedings{CC24p113, author = {Tong Zhou and Jun Shirako and Vivek Sarkar}, title = {APPy: Annotated Parallelism for Python on GPUs}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {113--125}, doi = {10.1145/3640537.3641575}, year = {2024}, } Publisher's Version Archive submitted (1.4 MB) |
|
Shah, Dhirpal |
CC '24: "YFlows: Systematic Dataflow ..."
YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs
Cyrus Zhou, Zack Hassman, Dhirpal Shah, Vaughn Richard, and Yanjing Li (University of Chicago, USA) We address the challenges associated with deploying neural networks on CPUs, with a particular focus on minimizing inference time while maintaining accuracy. Our novel approach is to use the dataflow (i.e., computation order) of a neural network to explore data reuse opportunities using heuristic-guided analysis and a code generation framework, which enables exploration of various Single Instruction, Multiple Data (SIMD) implementations to achieve optimized neural network execution. Our results demonstrate that the dataflow that keeps outputs in SIMD registers while also maximizing both input and weight reuse consistently yields the best performance for a wide variety of inference workloads, achieving up to 3x speedup for 8-bit neural networks, and up to 4.8x speedup for binary neural networks, respectively, over the optimized implementations of neural networks today. @InProceedings{CC24p212, author = {Cyrus Zhou and Zack Hassman and Dhirpal Shah and Vaughn Richard and Yanjing Li}, title = {YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {212--226}, doi = {10.1145/3640537.3641566}, year = {2024}, } Publisher's Version |
|
Shirako, Jun |
CC '24: "APPy: Annotated Parallelism ..."
APPy: Annotated Parallelism for Python on GPUs
Tong Zhou, Jun Shirako, and Vivek Sarkar (Georgia Institute of Technology, USA) GPUs are increasingly being used used to speed up Python applications in the scientific computing and machine learning domains. Currently, the two common approaches to leveraging GPU acceleration in Python are 1) create a custom native GPU kernel, and import it as a function that can be called from Python; 2) use libraries such as CuPy, which provides pre-defined GPU-implementation-backed tensor operators. The first approach is very flexible but requires tremendous manual effort to create a correct and high performance GPU kernel. While the second approach dramatically improves productivity, it is limited in its generality, as many applications cannot be expressed purely using CuPy’s pre-defined tensor operators. Additionally, redundant memory access can often occur between adjacent tensor operators due to the materialization of intermediate results. In this work, we present APPy (Annotated Parallelism for Python), which enables users to parallelize generic Python loops and tensor expressions for execution on GPUs by adding simple compiler directives (annotations) to Python code. Empirical evaluation on 20 scientific computing kernels from the literature on a server with an AMD Ryzen 7 5800X 8-Core CPU and an NVIDIA RTX 3090 GPU demonstrates that with simple pragmas APPy is able to generate more efficient GPU code and achieves significant geometric mean speedup relative to CuPy (30× on average), and to three state-of-the-art Python compilers, Numba (8.3× on average), DaCe-GPU (3.1× on average) and JAX-GPU (18.8× on average). @InProceedings{CC24p113, author = {Tong Zhou and Jun Shirako and Vivek Sarkar}, title = {APPy: Annotated Parallelism for Python on GPUs}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {113--125}, doi = {10.1145/3640537.3641575}, year = {2024}, } Publisher's Version Archive submitted (1.4 MB) |
|
Stanley-Marbell, Phillip |
CC '24: "CoSense: Compiler Optimizations ..."
CoSense: Compiler Optimizations using Sensor Technical Specifications
Pei Mu, Nikolaos Mavrogeorgis, Christos Vasiladiotis, Vasileios Tsoutsouras, Orestis Kaparounakis, Phillip Stanley-Marbell, and Antonio Barbalace (University of Edinburgh, United Kingdom; University of Cambridge, United Kingdom) Embedded systems are ubiquitous, but in order to maximize their lifetime on batteries there is a need for faster code execution – i.e., higher energy efficiency, and for reduced memory usage. The large number of sensors integrated into embedded systems gives us the opportunity to exploit sensors’ technical specifications, like a sensor’s value range, to guide compiler optimizations for faster code execution, small binaries, etc. We design and implement such an idea in COSENSE, a novel compiler (extension) based on the LLVM infrastructure, using an existing domain-specific language (DSL), NEWTON, to describe the bounds of and relations between physical quantities measured by sensors. COSENSE utilizes previously unexploited physical information correlated to program variables to drive code optimizations. COSENSE computes value ranges of variables and proceeds to overload functions, compress variable types, substitute code with constants and simplify the condition statements. We evaluated COSENSE using several microbenchmarks and two real-world applications on various platforms and CPUs. For microbenchmarks, COSENSE achieves 1.18× geomean speedup in execution time and 12.35% reduction on average in binary code size with 4.66% compilation time overhead on x86, and 1.23× geomean speedup in execution time and 10.95% reduction on average in binary code size with 5.67% compilation time overhead on ARM. For real-world applications, COSENSE achieves 1.70× and 1.50× speedup in execution time, 12.96% and 0.60% binary code reduction, 9.69% and 30.43% lower energy consumption, with a 26.58% and 24.01% compilation time overhead, respectively. @InProceedings{CC24p73, author = {Pei Mu and Nikolaos Mavrogeorgis and Christos Vasiladiotis and Vasileios Tsoutsouras and Orestis Kaparounakis and Phillip Stanley-Marbell and Antonio Barbalace}, title = {CoSense: Compiler Optimizations using Sensor Technical Specifications}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {73--85}, doi = {10.1145/3640537.3641576}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Functional Results Reproduced |
|
Stinnett, J. Ryan |
CC '24: "Accurate Coverage Metrics ..."
Accurate Coverage Metrics for Compiler-Generated Debugging Information
J. Ryan Stinnett and Stephen Kell (King’s College London, United Kingdom) Many debugging tools rely on compiler-produced metadata to present a source-language view of program states, such as variable values and source line numbers. While this tends to work for unoptimised programs, current compilers often generate only partial debugging information in optimised programs. Current approaches for measuring the extent of coverage of local variables are based on crude assumptions (for example, assuming variables could cover their whole parent scope) and are not comparable from one compilation to another. In this work, we propose some new metrics, computable by our tools, which could serve as motivation for language implementations to improve debugging quality. @InProceedings{CC24p126, author = {J. Ryan Stinnett and Stephen Kell}, title = {Accurate Coverage Metrics for Compiler-Generated Debugging Information}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {126--136}, doi = {10.1145/3640537.3641578}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available |
|
Sun, Shaotong |
CC '24: "Paguroidea: Fused Parser Generator ..."
Paguroidea: Fused Parser Generator with Transparent Semantic Actions
Yifan Zhu, Quartic Cat, Boluo Ge, and Shaotong Sun (University of Rochester, USA; Chinese University of Hong Kong, Shenzhen, China; North Carolina State University, USA) Parser generators have long been a savior for programmers, liberating them from the daunting task of crafting correct and maintainable parsers. Yet, this much-needed simplicity often comes at the expense of efficiency. We present, Paguroidea, a parser generator that harnesses the power of lexer-parser fusion techniques to create parsers that boast user-friendly grammar definitions while delivering performance that rivals specialized parsers. Building upon the foundations of the flap parser, our work introduces a series of extensions. One of our key contributions is a novel approach to the normalization method. By encoding reduction actions directly into the Deterministic Greibach Normal Form (DGNF), we provide parser generators with flexibility in manipulating semantic actions. This unique approach empowers developers with the freedom to customize their parser generators to their specific needs while maintaining semantic correctness. Furthermore, we formulate the execution of the parser in substructural logic, providing an elegant way to prove the correctness of the amended normalization procedure. In this exposition, we offer a glimpse into efficacious, user-friendly, and correctness-provable parser generation. @InProceedings{CC24p39, author = {Yifan Zhu and Quartic Cat and Boluo Ge and Shaotong Sun}, title = {Paguroidea: Fused Parser Generator with Transparent Semantic Actions}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {39--48}, doi = {10.1145/3640537.3641563}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Trofin, Mircea |
CC '24: "The Next 700 ML-Enabled Compiler ..."
The Next 700 ML-Enabled Compiler Optimizations
S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla, Rajiv Shailesh Chitale, Eugene Brevdo, Albert Cohen, Mircea Trofin, and Ramakrishna Upadrasta (IIT Hyderabad, India; Google DeepMind, USA; Google DeepMind, France; Google, USA) There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler internals, raising issues with modularity, performance and framework independence. Practical deployment and transparency for the end-user are also important concerns. We propose ML-Compiler-Bridge to enable ML model development within a traditional Python framework while making end-to-end integration with an optimizing compiler possible and efficient. We evaluate it on both research and production use cases, for training and inference, over several optimization problems, multiple compilers and its versions, and gym infrastructures. @InProceedings{CC24p238, author = {S. VenkataKeerthy and Siddharth Jain and Umesh Kalvakuntla and Pranav Sai Gorantla and Rajiv Shailesh Chitale and Eugene Brevdo and Albert Cohen and Mircea Trofin and Ramakrishna Upadrasta}, title = {The Next 700 ML-Enabled Compiler Optimizations}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {238--249}, doi = {10.1145/3640537.3641580}, year = {2024}, } Publisher's Version Published Artifact Info Artifacts Available Artifacts Functional Results Reproduced |
|
Tsoutsouras, Vasileios |
CC '24: "CoSense: Compiler Optimizations ..."
CoSense: Compiler Optimizations using Sensor Technical Specifications
Pei Mu, Nikolaos Mavrogeorgis, Christos Vasiladiotis, Vasileios Tsoutsouras, Orestis Kaparounakis, Phillip Stanley-Marbell, and Antonio Barbalace (University of Edinburgh, United Kingdom; University of Cambridge, United Kingdom) Embedded systems are ubiquitous, but in order to maximize their lifetime on batteries there is a need for faster code execution – i.e., higher energy efficiency, and for reduced memory usage. The large number of sensors integrated into embedded systems gives us the opportunity to exploit sensors’ technical specifications, like a sensor’s value range, to guide compiler optimizations for faster code execution, small binaries, etc. We design and implement such an idea in COSENSE, a novel compiler (extension) based on the LLVM infrastructure, using an existing domain-specific language (DSL), NEWTON, to describe the bounds of and relations between physical quantities measured by sensors. COSENSE utilizes previously unexploited physical information correlated to program variables to drive code optimizations. COSENSE computes value ranges of variables and proceeds to overload functions, compress variable types, substitute code with constants and simplify the condition statements. We evaluated COSENSE using several microbenchmarks and two real-world applications on various platforms and CPUs. For microbenchmarks, COSENSE achieves 1.18× geomean speedup in execution time and 12.35% reduction on average in binary code size with 4.66% compilation time overhead on x86, and 1.23× geomean speedup in execution time and 10.95% reduction on average in binary code size with 5.67% compilation time overhead on ARM. For real-world applications, COSENSE achieves 1.70× and 1.50× speedup in execution time, 12.96% and 0.60% binary code reduction, 9.69% and 30.43% lower energy consumption, with a 26.58% and 24.01% compilation time overhead, respectively. @InProceedings{CC24p73, author = {Pei Mu and Nikolaos Mavrogeorgis and Christos Vasiladiotis and Vasileios Tsoutsouras and Orestis Kaparounakis and Phillip Stanley-Marbell and Antonio Barbalace}, title = {CoSense: Compiler Optimizations using Sensor Technical Specifications}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {73--85}, doi = {10.1145/3640537.3641576}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Functional Results Reproduced |
|
Upadrasta, Ramakrishna |
CC '24: "The Next 700 ML-Enabled Compiler ..."
The Next 700 ML-Enabled Compiler Optimizations
S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla, Rajiv Shailesh Chitale, Eugene Brevdo, Albert Cohen, Mircea Trofin, and Ramakrishna Upadrasta (IIT Hyderabad, India; Google DeepMind, USA; Google DeepMind, France; Google, USA) There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler internals, raising issues with modularity, performance and framework independence. Practical deployment and transparency for the end-user are also important concerns. We propose ML-Compiler-Bridge to enable ML model development within a traditional Python framework while making end-to-end integration with an optimizing compiler possible and efficient. We evaluate it on both research and production use cases, for training and inference, over several optimization problems, multiple compilers and its versions, and gym infrastructures. @InProceedings{CC24p238, author = {S. VenkataKeerthy and Siddharth Jain and Umesh Kalvakuntla and Pranav Sai Gorantla and Rajiv Shailesh Chitale and Eugene Brevdo and Albert Cohen and Mircea Trofin and Ramakrishna Upadrasta}, title = {The Next 700 ML-Enabled Compiler Optimizations}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {238--249}, doi = {10.1145/3640537.3641580}, year = {2024}, } Publisher's Version Published Artifact Info Artifacts Available Artifacts Functional Results Reproduced |
|
Vasiladiotis, Christos |
CC '24: "UNIFICO: Thread Migration ..."
UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation
Nikolaos Mavrogeorgis, Christos Vasiladiotis, Pei Mu, Amir Khordadi, Björn Franke, and Antonio Barbalace (University of Edinburgh, United Kingdom) Heterogeneous-ISA processor designs have attracted considerable research interest. However, unlike their homogeneous-ISA counterparts, explicit software support for bridging ISA heterogeneity is required. The lack of a compilation toolchain ready to support heterogeneous-ISA targets has been a major factor hindering research in this exciting emerging area. For any such compiler “getting right” the mechanics involved in state transformation upon migration and doing this efficiently is of critical importance. In particular, any runtime conversion of the current program stack from one architecture to another would be prohibitively expensive. In this paper, we design and develop Unifico, a new multi-ISA compiler that generates binaries that maintain the same stack layout during their execution on either architecture. Unifico avoids the need for runtime stack transformation, thus eliminating overheads associated with ISA migration. Additional responsibilities of the Unifico compiler backend include maintenance of a uniform ABI and virtual address space across ISAs. Unifico is implemented using the LLVM compiler infrastructure, and we are currently targeting the x86-64 and ARMv8 ISAs. We have evaluated Unifico across a range of compute-intensive NAS benchmarks and show its minimal impact on overall execution time, where less than 6% overhead is introduced on average. When compared against the state-of-the-art Popcorn compiler, Unifico reduces binary size overhead from ∼200% to ∼10%, whilst eliminating the stack transformation overhead during ISA migration. @InProceedings{CC24p86, author = {Nikolaos Mavrogeorgis and Christos Vasiladiotis and Pei Mu and Amir Khordadi and Björn Franke and Antonio Barbalace}, title = {UNIFICO: Thread Migration in Heterogeneous-ISA CPUs without State Transformation}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {86--99}, doi = {10.1145/3640537.3641565}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced CC '24: "CoSense: Compiler Optimizations ..." CoSense: Compiler Optimizations using Sensor Technical Specifications Pei Mu, Nikolaos Mavrogeorgis, Christos Vasiladiotis, Vasileios Tsoutsouras, Orestis Kaparounakis, Phillip Stanley-Marbell, and Antonio Barbalace (University of Edinburgh, United Kingdom; University of Cambridge, United Kingdom) Embedded systems are ubiquitous, but in order to maximize their lifetime on batteries there is a need for faster code execution – i.e., higher energy efficiency, and for reduced memory usage. The large number of sensors integrated into embedded systems gives us the opportunity to exploit sensors’ technical specifications, like a sensor’s value range, to guide compiler optimizations for faster code execution, small binaries, etc. We design and implement such an idea in COSENSE, a novel compiler (extension) based on the LLVM infrastructure, using an existing domain-specific language (DSL), NEWTON, to describe the bounds of and relations between physical quantities measured by sensors. COSENSE utilizes previously unexploited physical information correlated to program variables to drive code optimizations. COSENSE computes value ranges of variables and proceeds to overload functions, compress variable types, substitute code with constants and simplify the condition statements. We evaluated COSENSE using several microbenchmarks and two real-world applications on various platforms and CPUs. For microbenchmarks, COSENSE achieves 1.18× geomean speedup in execution time and 12.35% reduction on average in binary code size with 4.66% compilation time overhead on x86, and 1.23× geomean speedup in execution time and 10.95% reduction on average in binary code size with 5.67% compilation time overhead on ARM. For real-world applications, COSENSE achieves 1.70× and 1.50× speedup in execution time, 12.96% and 0.60% binary code reduction, 9.69% and 30.43% lower energy consumption, with a 26.58% and 24.01% compilation time overhead, respectively. @InProceedings{CC24p73, author = {Pei Mu and Nikolaos Mavrogeorgis and Christos Vasiladiotis and Vasileios Tsoutsouras and Orestis Kaparounakis and Phillip Stanley-Marbell and Antonio Barbalace}, title = {CoSense: Compiler Optimizations using Sensor Technical Specifications}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {73--85}, doi = {10.1145/3640537.3641576}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Functional Results Reproduced |
|
VenkataKeerthy, S. |
CC '24: "The Next 700 ML-Enabled Compiler ..."
The Next 700 ML-Enabled Compiler Optimizations
S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla, Rajiv Shailesh Chitale, Eugene Brevdo, Albert Cohen, Mircea Trofin, and Ramakrishna Upadrasta (IIT Hyderabad, India; Google DeepMind, USA; Google DeepMind, France; Google, USA) There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler internals, raising issues with modularity, performance and framework independence. Practical deployment and transparency for the end-user are also important concerns. We propose ML-Compiler-Bridge to enable ML model development within a traditional Python framework while making end-to-end integration with an optimizing compiler possible and efficient. We evaluate it on both research and production use cases, for training and inference, over several optimization problems, multiple compilers and its versions, and gym infrastructures. @InProceedings{CC24p238, author = {S. VenkataKeerthy and Siddharth Jain and Umesh Kalvakuntla and Pranav Sai Gorantla and Rajiv Shailesh Chitale and Eugene Brevdo and Albert Cohen and Mircea Trofin and Ramakrishna Upadrasta}, title = {The Next 700 ML-Enabled Compiler Optimizations}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {238--249}, doi = {10.1145/3640537.3641580}, year = {2024}, } Publisher's Version Published Artifact Info Artifacts Available Artifacts Functional Results Reproduced |
|
Wu, Qinzhe |
CC '24: "BLQ: Light-Weight Locality-Aware ..."
BLQ: Light-Weight Locality-Aware Runtime for Blocking-Less Queuing
Qinzhe Wu, Ruihao Li, Jonathan Beard, and Lizy John (University of Texas at Austin, USA; Arm, USA) Message queues are used widely in parallel processing systems for worker thread synchronization. When there is a throughput mismatch between the upstream and downstream tasks, the message queue buffer will often exist as either empty or full. Polling on an empty or full queue will affect the performance of upstream or downstream threads, since such polling cycles could have been spent on other computation. Non-blocking queue is an alternative that allow polling cycles to be spared for other tasks per applications’ choice. However, application programmers are not supposed to bear the burden, because a good decision of what to do upon blocking has to take many runtime environment information into consideration. This paper proposes Blocking-Less Queuing Runtime (BLQ), a systematic solution capable of finding the proper strategies at (or before) blocking, as well as lightening the programmers’ burden. BLQ collects a set of solutions, including yielding, advanced dynamic queue buffer resizing, and resource-aware task scheduling. The evaluation on high-end servers shows that a set of diverse parallel queuing workloads could reduce blocking and lower cache misses with BLQ. BLQ outperforms the baseline runtime considerably (with up to 3.8× peak speedup). @InProceedings{CC24p100, author = {Qinzhe Wu and Ruihao Li and Jonathan Beard and Lizy John}, title = {BLQ: Light-Weight Locality-Aware Runtime for Blocking-Less Queuing}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {100--112}, doi = {10.1145/3640537.3641568}, year = {2024}, } Publisher's Version |
|
Xue, Jingling |
CC '24: "A Context-Sensitive Pointer ..."
A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction
Wei Li, Dongjie He, Yujiang Gui, Wenguang Chen, and Jingling Xue (UNSW, Australia; Tsinghua University, China) Existing program analysis tools for Rust lack the ability to effectively detect security vulnerabilities due to the absence of an accurate call graph and precise points-to information. We present Rupta, the first context-sensitive pointer analysis framework designed for Rust, with a particular focus on its role in constructing call graphs. Operating on Rust MIR, Rupta employs callsite-based context-sensitivity and on-the-fly call graph construction to address a range of pointer analysis challenges, including method/function calls, pointer casts, and nested structs, while preserving type information. Our assessment of Rupta against two state-of-the-art call graph construction techniques, Rurta (Rapid Type Analysis-based) and Ruscg (static dispatch-only), across 13 real-world Rust programs demonstrates its high efficiency and precision. In particular, our results reveal that Rupta surpasses Ruscg in soundness by discovering 29% more call graph edges and outperforms Rurta in precision by eliminating approximately 70% of spurious dynamic call edges. Consequently, Rupta has the potential to enhance existing security analysis tools, enabling them to identify a greater number of security vulnerabilities in Rust programs. @InProceedings{CC24p60, author = {Wei Li and Dongjie He and Yujiang Gui and Wenguang Chen and Jingling Xue}, title = {A Context-Sensitive Pointer Analysis Framework for Rust and Its Application to Call Graph Construction}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {60--72}, doi = {10.1145/3640537.3641574}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
|
Zaks, Ayal |
CC '24: "If-Convert as Early as You ..."
If-Convert as Early as You Must
Dorit Nuzman, Ayal Zaks, and Ziv Ben-Zion (Mobileye, Israel) Optimizing compilers employ a rich set of transformations that generate highly efficient code for a variety of source languages and target architectures. These transformations typically operate on general control flow constructs which trigger a range of optimization opportunities, such as moving code to less frequently executed paths, and more. Regular loop nests are specifically relevant for accelerating certain domains, leveraging architectural features including vector instructions, hardware-controlled loops and data flows, provided their internal control-flow is eliminated. Compilers typically apply predicating if-conversion late, in their backend, to remove control-flow undesired by the target. Until then, transformations triggered by control-flow constructs that are destined to be removed may end up doing more harm than good. We present an approach that leverages the existing powerful and general optimization flow of LLVM when compiling for targets without control-flow in loops. Rather than trying to teach various transformations how to avoid misoptimizing for such targets, we propose to introduce an aggressive if-conversion pass as early as possible, along with carefully addressing pass-ordering implications. This solution outperforms the traditional compilation flow with only a modest tuning effort, thereby offering a robust and promising compilation approach for branch-restricted targets. @InProceedings{CC24p26, author = {Dorit Nuzman and Ayal Zaks and Ziv Ben-Zion}, title = {If-Convert as Early as You Must}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {26--38}, doi = {10.1145/3640537.3641562}, year = {2024}, } Publisher's Version |
|
Zhou, Cyrus |
CC '24: "YFlows: Systematic Dataflow ..."
YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs
Cyrus Zhou, Zack Hassman, Dhirpal Shah, Vaughn Richard, and Yanjing Li (University of Chicago, USA) We address the challenges associated with deploying neural networks on CPUs, with a particular focus on minimizing inference time while maintaining accuracy. Our novel approach is to use the dataflow (i.e., computation order) of a neural network to explore data reuse opportunities using heuristic-guided analysis and a code generation framework, which enables exploration of various Single Instruction, Multiple Data (SIMD) implementations to achieve optimized neural network execution. Our results demonstrate that the dataflow that keeps outputs in SIMD registers while also maximizing both input and weight reuse consistently yields the best performance for a wide variety of inference workloads, achieving up to 3x speedup for 8-bit neural networks, and up to 4.8x speedup for binary neural networks, respectively, over the optimized implementations of neural networks today. @InProceedings{CC24p212, author = {Cyrus Zhou and Zack Hassman and Dhirpal Shah and Vaughn Richard and Yanjing Li}, title = {YFlows: Systematic Dataflow Exploration and Code Generation for Efficient Neural Network Inference using SIMD Architectures on CPUs}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {212--226}, doi = {10.1145/3640537.3641566}, year = {2024}, } Publisher's Version |
|
Zhou, Tong |
CC '24: "APPy: Annotated Parallelism ..."
APPy: Annotated Parallelism for Python on GPUs
Tong Zhou, Jun Shirako, and Vivek Sarkar (Georgia Institute of Technology, USA) GPUs are increasingly being used used to speed up Python applications in the scientific computing and machine learning domains. Currently, the two common approaches to leveraging GPU acceleration in Python are 1) create a custom native GPU kernel, and import it as a function that can be called from Python; 2) use libraries such as CuPy, which provides pre-defined GPU-implementation-backed tensor operators. The first approach is very flexible but requires tremendous manual effort to create a correct and high performance GPU kernel. While the second approach dramatically improves productivity, it is limited in its generality, as many applications cannot be expressed purely using CuPy’s pre-defined tensor operators. Additionally, redundant memory access can often occur between adjacent tensor operators due to the materialization of intermediate results. In this work, we present APPy (Annotated Parallelism for Python), which enables users to parallelize generic Python loops and tensor expressions for execution on GPUs by adding simple compiler directives (annotations) to Python code. Empirical evaluation on 20 scientific computing kernels from the literature on a server with an AMD Ryzen 7 5800X 8-Core CPU and an NVIDIA RTX 3090 GPU demonstrates that with simple pragmas APPy is able to generate more efficient GPU code and achieves significant geometric mean speedup relative to CuPy (30× on average), and to three state-of-the-art Python compilers, Numba (8.3× on average), DaCe-GPU (3.1× on average) and JAX-GPU (18.8× on average). @InProceedings{CC24p113, author = {Tong Zhou and Jun Shirako and Vivek Sarkar}, title = {APPy: Annotated Parallelism for Python on GPUs}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {113--125}, doi = {10.1145/3640537.3641575}, year = {2024}, } Publisher's Version Archive submitted (1.4 MB) |
|
Zhu, Yifan |
CC '24: "Paguroidea: Fused Parser Generator ..."
Paguroidea: Fused Parser Generator with Transparent Semantic Actions
Yifan Zhu, Quartic Cat, Boluo Ge, and Shaotong Sun (University of Rochester, USA; Chinese University of Hong Kong, Shenzhen, China; North Carolina State University, USA) Parser generators have long been a savior for programmers, liberating them from the daunting task of crafting correct and maintainable parsers. Yet, this much-needed simplicity often comes at the expense of efficiency. We present, Paguroidea, a parser generator that harnesses the power of lexer-parser fusion techniques to create parsers that boast user-friendly grammar definitions while delivering performance that rivals specialized parsers. Building upon the foundations of the flap parser, our work introduces a series of extensions. One of our key contributions is a novel approach to the normalization method. By encoding reduction actions directly into the Deterministic Greibach Normal Form (DGNF), we provide parser generators with flexibility in manipulating semantic actions. This unique approach empowers developers with the freedom to customize their parser generators to their specific needs while maintaining semantic correctness. Furthermore, we formulate the execution of the parser in substructural logic, providing an elegant way to prove the correctness of the amended normalization procedure. In this exposition, we offer a glimpse into efficacious, user-friendly, and correctness-provable parser generation. @InProceedings{CC24p39, author = {Yifan Zhu and Quartic Cat and Boluo Ge and Shaotong Sun}, title = {Paguroidea: Fused Parser Generator with Transparent Semantic Actions}, booktitle = {Proc.\ CC}, publisher = {ACM}, pages = {39--48}, doi = {10.1145/3640537.3641563}, year = {2024}, } Publisher's Version Published Artifact Artifacts Available Artifacts Reusable Results Reproduced |
71 authors
proc time: 12.01