LLVM Command Guide

Overview

This document is the reference manual for the LLVM utilities. It will show you how to use the LLVM commands and what all of their options are.

LLVM Base Commands

llvm-as
Assemble a human-readable LLVM program into LLVM bytecode.

llvm-dis
Disassemble an LLVM bytecode file into human-readable form.

analyze
Analyze an LLVM bytecode file.

opt
Optimize an LLVM bytecode file.

llvm-link
Link several LLVM bytecode files together into one LLVM bytecode file.

llc
Compile an LLVM bytecode program into native machine code.
lli
Run an LLVM bytecode program using either an interpreter or a JIT compiler.

LLVM Debugging Tools

bugpoint
Trace an LLVM bytecode program and reduce its failure to a simple testcase.

extract
Extract a function from an LLVM bytecode file.

LLVM GCC Support Commands

llvmgcc
GCC-based C front end for LLVM.

llvmg++
GCC-based C++ front end for LLVM.

gccas
LLVM assembler used by GCC and other native compiler tools.

gccld
LLVM linker used by GCC and other native compiler tools.