Original author(s) | Chris Lattner, Vikram Adve |
---|---|
Developer(s) | LLVM Developer Group |
Initial release | 2003 |
Stable release | 19.1.6[2]
/ 17 December 2024 |
Repository | |
Written in | C++ |
Operating system | Cross-platform |
Type | Compiler |
License | Apache License 2.0 with LLVM Exceptions (v9.0.0 or later)[3] Legacy license:[4] UIUC (BSD-style) |
Website | www |
LLVM, also called LLVM Core, is a target-independent optimizer and code generator.[5] It can be used to develop a frontend for any programming language and a backend for any instruction set architecture. LLVM is designed around a language-independent intermediate representation (IR) that serves as a portable, high-level assembly language that can be optimized with a variety of transformations over multiple passes.[6] The name LLVM originally stood for Low Level Virtual Machine, though the project has expanded and the name is no longer officially an initialism.
LLVM is written in C++ and is designed for compile-time, link-time, runtime, and "idle-time" optimization. Originally implemented for C and C++, the language-agnostic design of LLVM has since spawned a wide variety of frontends: languages with compilers that use LLVM (or which do not directly use LLVM but can generate compiled programs as LLVM IR) include ActionScript, Ada, C# for .NET,[7][8][9] Common Lisp,[10] PicoLisp, Crystal, CUDA, D,[11] Delphi,[12] Dylan, Forth,[13] Fortran,[14] FreeBASIC, Free Pascal, Halide, Haskell, Idris,[15] Java bytecode, Julia, Kotlin, LabVIEW's G language,[16][17] Objective-C, OpenCL,[18] PostgreSQL's SQL and PLpgSQL,[19] Ruby,[20] Rust,[21] Scala,[22][23] Standard ML,[24] Swift, Xojo, and Zig.
RubyMotion transforms the Ruby source code of your project into ... machine code using a[n] ... ahead-of-time (AOT) compiler, based on LLVM.