按年被提到
20252025 · 3 次2026
编程语言与编译器›编译器与运行时优化·arXiv:2505.22610 · cs.PL

TPDE: A Fast Adaptable Compiler Back-End Framework

Tobias Schwarz, Tobias Kamm, Alexis Engelke · 2025
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 3 人首次 2025-05-29 · 最近 2025-06-02
3不同的人
2活跃月份
3讨论串
0被引(OpenAlex)
arXiv 摘要(候选层不写导读)

Fast machine code generation is especially important for fast start-up just-in-time compilation, where the compilation time is part of the end-to-end latency. However, widely used compiler frameworks like LLVM do not prioritize fast compilation and require an extra IR translation step increasing latency even further; and rolling a custom code generator is a substantial engineering effort, especially when targeting multiple architectures. Therefore, in this paper, we present TPDE, a compiler back-end framework that adapts to existing code representations in SSA form. Using an IR-specific adapter providing canonical access to IR data structures and a specification of the IR semantics, the framework performs one analysis pass and then performs the compilation in just a single pass, combining instruction selection, register allocation, and instruction encoding. The generated target instructions are primarily derived code written in high-level language through LLVM's Machine IR, easing portability to different architectures while enabling optimizations during code generation. To show the generality of our framework, we build a new back-end for LLVM from scratch targeting x86-64 and AArch64. Performance results on SPECint 2017 show that we can compile LLVM-IR 8--24x faster than LLVM -O0 while being on-par in terms of run-time performance. We also demonstrate the benefits of adapting to domain-specific IRs in JIT contexts, particularly WebAssembly and database query compilation, where avoiding the extra IR translation further reduces compilation latency.

候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。

HN 书评

没有评论直接链到它;下面是它被提交的讨论串里回复最多的评论(不计入统计)
讨论串评论BarakWidawsky · 2025-06

“If this is a faster backend for LLVM, does it potentially obviate the niche Cranelift is optimizing for?”

TPDE: A Fast Adaptable Compiler Back-End Framework原评论 ↗
讨论串评论xiphias2 · 2025-06

“It's great start, but what would be cooler if they really went through the boring part, which is putting it into LLVM as the new default -O0 compiler. Edit: LLM to LLVM”

TPDE: A Fast Adaptable Compiler Back-End Framework原评论 ↗
讨论串评论fooker · 2025-06

“What makes this 'adaptable' and what makes this a 'framework'? Seems like a pretty neat fast compiler backend for LLVM. Why the extra buzzwords?”

TPDE: A Fast Adaptable Compiler Back-End Framework原评论 ↗
被提交为 story · 3 次