Rust Rewrite Index

LLVM toolchain

LLVM-based linker

Rust efforts

Research record · 2026-11-29

Searched LLVM 19 Rust reimplementation, LLVM IR libraries and compiler code generators. LLVM-in-Rust describes a scoped LLVM infrastructure reimplementation with upstream fallback and explicitly says it is not a general drop-in replacement. llvmkit targets IR APIs and tracks LLVM 22, not the complete LLVM 19 toolchain. Cranelift is an independent code generator that can replace LLVM in selected consumers, not a source port.

Original source check. The packaged source tree includes 4 files with the .rs suffix. This covers the Debian 13 snapshot and excludes common vendor directories. Independent repositories are outside this count.

Partial rewrite

LLVM-in-Rust

Rust reimplementation of parts of LLVM infrastructure; its own support statement requires upstream fallback for unsupported cases and disclaims general drop-in coverage.

Evidence checked 2026-11-29
Rust component

llvmkit

Rust implementation of LLVM IR APIs, currently tracking LLVM 22; the README says bitcode support is still ahead.

Evidence checked 2026-11-29
Rust alternative

Cranelift

Independent Rust compiler code generator, used as an alternative backend for selected workloads, not a port of the LLVM toolchain.

Evidence checked 2026-11-29

Project structure

Frontends emit LLVM IR, optimizer passes transform it, and target backends generate code. Clang, LLD and LLDB add language, linking and debugging tools.

Inside the source tree

  • llvm/ · 67,184 indexed files
  • clang/ · 28,208 indexed files
  • libcxx/ · 10,587 indexed files
  • lldb/ · 7,817 indexed files
  • mlir/ · 5,650 indexed files

Source files by extension in this snapshot · C++ (32,110), C (11,622), Python (2,427), Assembly (362), OCaml (26)

Selected components packaged from this source in Debian 13.

  • lld-19 · LLVM-based linker
  • bolt-19 · Post-link optimizer
  • lldb-19 · Next generation, high-performance debugger
  • llvm-19 · Modular compiler and toolchain technologies
  • clang-19 · C, C++ and Objective-C compiler
  • flang-19 · Fortran compiler