LLVM:一套开源的编译器基础设施(compiler infrastructure),提供中间表示(IR)、优化器、代码生成器等组件,常用于构建编程语言编译器与相关工具(例如 Clang)。最初名称来自 Low Level Virtual Machine,但如今 LLVM 不再被官方当作缩写来解释。
/ˌɛlˌɛlˌviːˈɛm/
LLVM helps developers build fast, portable compilers.
LLVM 帮助开发者构建高性能、可移植的编译器。
By optimizing the LLVM IR, the compiler can improve performance without changing the source code.
通过优化 LLVM 的 IR(中间表示),编译器可以在不改动源代码的情况下提升性能。
LLVM 起初是一个研究项目,名称源于 “Low Level Virtual Machine”,强调一种便于优化与跨平台代码生成的中间层;随着项目发展,它逐渐成为一个完整的编译器生态系统,官方也更倾向将 LLVM 视为项目名而非缩写。