Abstract
dc:description.abstractOptimizing compilers and program analysis tools rely heavily on searching large abstract syntax trees (ASTs) for specific patterns to apply rewrite rules. This search is often a major performance bottleneck, particularly for large or complex programs. In this thesis, I develop a declaratively specified framework for SQL compiler optimization that leverages incremental view maintenance(IVM) and work-sharing strategies to efficiently execute large-scale pattern matching and rewriting tasks. I introduce TREETOASTER an AST-specialized IVM technique implemented within the JITD framework, a just-in-time data structure compiler. JITD materializes and incrementally maintains views of AST nodes eligible for rewrites, effectively eliminating the need for repeated, costly traversals during optimization. By combining compiler-specific optimizations with classical database techniques such as inlining and IVM, TREETOASTER dramatically reduces the cost of pattern matching while maintaining minimal memory overhead. Building on these insights, I present ASTRAL, the AST-Relational Algebra, a declarative language for expressing compiler analyses and rewrite rules. ASTRAL bridges idiomatic compiler logic and relational query processing, allowing compiler authors to write transformations declaratively while automatically benefiting from database-style optimizations like IVM and work sharing. Together, these systems demonstrate how declarative specification, incremental view maintenance, and work-sharing techniques can be combined to produce compiler frameworks that are both high-performance and maintainable, offering a path toward scalable, declaratively optimized compilation.
Degree
thesis:*- Grantor dc:publisher
- State University of New York at Buffalo
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Balakrishnan, Darshana; 0009-0007-6106-0997
- Contributors dc:contributor
-
- Kennedy, Oliver
- Computer Science and Engineering
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions.
- Language dc:language
- eng
Identifiers
dc:identifier.*- Handle dc:identifier
- http://hdl.handle.net/10477/90723