# LLVM IR

> The intermediate language of the LLVM compilers (clang, rustc, swiftc and others); optimizations and code generation happen here.

- Kind: ir

## Compiles to

| To | Via | Assurance | What is lost |
|---|---|---|---|
| x86-64 | LLVM backend (llc) | trusted | IR-level values and types become registers and memory. |
| AArch64 | LLVM backend (llc) | trusted | IR-level values and types become registers and memory. |
| RISC-V | LLVM backend (llc) | trusted | IR-level values and types become registers and memory. |
| WebAssembly | LLVM WebAssembly backend | trusted | IR-level values and types become stack-machine code. |

## Verify your code directly

| Toolchain | Stage | Effort | Via |
|---|---|---|---|
| [Alive2](/toolchains/alive2.md) | 1 Usable | Push-button | — |

## Verify the compiled code

| Toolchain | Stage | Effort | Via |
|---|---|---|---|
| [s2n-bignum](/toolchains/s2n-bignum.md) | 1 Usable | Interactive | LLVM IR → x86-64 (LLVM backend (llc), trusted) |
| [Islaris](/toolchains/islaris.md) | 0 Research | Interactive | LLVM IR → AArch64 (LLVM backend (llc), trusted) |
| [LNSym](/toolchains/lnsym.md) | 0 Research | Interactive | LLVM IR → AArch64 (LLVM backend (llc), trusted) |

## Formal semantics
- [Vellvm](/semantics/vellvm.md): A formal semantics of LLVM IR in Rocq, with an executable interpreter extracted from the same definitions and used to test the model against clang.

---
Last checked 2026-11-26. Data: [JSON](/targets/llvm-ir.json) · Page: [HTML](/targets/llvm-ir/) · Methodology v0.1: [/methodology/](/methodology/) · Corrections: [/contribute/](/contribute/)
