llvm.org GIT mirror llvm / release_50 docs / index.rst

Tree @release_50 (Download .tar.gz)

index.rst @release_50view markup · raw · history · blame


The LLVM compiler infrastructure supports a wide range of projects, from industrial strength compilers to specialized JIT applications to small research projects.

Similarly, documentation is broken down into several high-level groupings targeted at different audiences:

LLVM Design & Overview

Several introductory papers and presentations.

Defines the LLVM intermediate representation.
Introduction to the LLVM Compiler
Presentation providing a users introduction to LLVM.
Intro to LLVM
Book chapter providing a compiler hacker's introduction to LLVM.
LLVM: A Compilation Framework for Lifelong Program Analysis & Transformation
Design overview.
LLVM: An Infrastructure for Multi-Stage Optimization
More details (quite old now).
Publications mentioning LLVM

User Guides

For those new to the LLVM system.

NOTE: If you are a user who is only interested in using LLVM-based compilers, you should look into Clang or DragonEgg instead. The documentation here is intended for users who have a need to work with the intermediate LLVM representation.

Discusses how to get up and running quickly with the LLVM infrastructure. Everything from unpacking and compilation of the distribution to execution of some tools.
An addendum to the main Getting Started guide for those using the CMake build system.
Notes on building and testing LLVM/Clang on ARM.
Notes on cross-building and testing LLVM/Clang.
An addendum to the main Getting Started guide for those using Visual Studio on Windows.
Tutorials about using LLVM. Includes a tutorial about making a custom language with LLVM.
:doc:`LLVM Command Guide <CommandGuide/index>`
A reference manual for the LLVM command line utilities ("man" pages for LLVM tools).
A list of optimizations and analyses implemented in LLVM.
A list of common questions and problems and their solutions.
:doc:`Release notes for the current release <ReleaseNotes>`
This describes new features, known bugs, and other limitations.
Instructions for properly submitting information about any bugs you run into in the LLVM system.
A template + tutorial for writing new Sphinx documentation. It is meant to be read in source form.
:doc:`LLVM Testing Infrastructure Guide <TestingGuide>`
A reference manual for using the LLVM testing infrastructure.
How to build the C, C++, ObjC, and ObjC++ front end
Instructions for building the clang front-end from source.
Definition of acronyms, terms and concepts used in LLVM.
Instructions for adding new builder to LLVM buildbot master.
A reference guide for using LLVM's YAML I/O library.
Answers to some very frequent questions about LLVM's most frequently misunderstood instruction.
A collection of tips for frontend authors on how to generate IR which LLVM is able to effectively optimize.
A reference for using Dockerfiles provided with LLVM.

Programming Documentation

For developers of applications which use LLVM as a library.

:doc:`LLVM Language Reference Manual <LangRef>`
Defines the LLVM intermediate representation and the assembly form of the different nodes.
Information about LLVM's concurrency model.
Introduction to the general layout of the LLVM sourcebase, important classes and APIs, and some tips & tricks.
LLVM-specific extensions to tools and formats LLVM seeks compatibility with.
Provides information on using the command line parsing library.
Details the LLVM coding standards and provides useful information on writing efficient C++ code.
How to make isa<>, dyn_cast<>, etc. available for clients of your class hierarchy.
Look here to see how to add instructions and intrinsics to LLVM.
Doxygen generated documentation
(classes) (tarball)

Documentation for Go bindings

ViewVC Repository Browser
A list of helpful links for compiler writers.
A library for writing in-process guided fuzzers.
A library that implements a security-hardened malloc().
A command line option for debugging optimization-induced failures.

Subsystem Documentation

For API clients and LLVM developers.

Information on how to write LLVM transformations and analyses.
Information on how to write LLVM backends for machine targets.
The design and implementation of the LLVM code generator. Useful if you are working on retargetting LLVM to a new architecture, designing a new codegen pass, or enhancing existing components.
:doc:`Machine IR (MIR) Format Reference Manual <MIRLangRef>`
A reference manual for the MIR serialization format, which is used to test LLVM's code generation passes.
:doc:`TableGen <TableGen/index>`
Describes the TableGen tool, which is used heavily by the LLVM code generator.
Information on how to write a new alias analysis implementation or how to use existing analyses.
Information about the MemorySSA utility in LLVM, as well as how to use it.
The interfaces source-language compilers should use for compiling GC'd programs.
:doc:`Source Level Debugging with LLVM <SourceLevelDebugging>`
This document describes the design and philosophy behind the LLVM source-level debugger.
This document describes the current status of vectorization in LLVM.
This document describes the design and implementation of exception handling in LLVM.
Automatic bug finder and test-case reducer description and usage information.
This describes the file format and encoding used for LLVM "bc" files.
:doc:`System Library <SystemLibrary>`
This document describes the LLVM System Library (lib/System) and how to keep LLVM source code portable
This document describes the interface between LLVM intermodular optimizer and the linker and its design
How to build your programs with link-time optimization on Linux.
How to debug JITed code with GDB.
Describes the inner workings of MCJIT execution engine.
Provides information about Branch Prediction Information.
Provides information about terminology used in the BlockFrequencyInfo analysis pass.
This document describes segmented stacks and how they are used in LLVM.
This document describes the optional rich disassembly output syntax.
Answers some questions about the new Attributes infrastructure.
This document describes using the NVPTX backend to compile GPU kernels.
This document describes using the AMDGPU backend to compile GPU kernels.
LLVM support for mapping instruction addresses to the location of values and allowing code to be patched.
LLVM's support for generating NEON instructions on big endian ARM targets is somewhat nonintuitive. This document explains the implementation and rationale.
This describes the format and encoding used for LLVM’s code coverage mapping.
This describes a set of experimental extensions for garbage collection support.
Describes functions merging optimization.
Description of the inalloca argument attribute.
LLVM support for folding control flow into faulting machine instructions.
LLVM support for CUDA.
LLVM support for coroutines.
This describes the prototype instruction selection replacement, GlobalISel.
High-level documentation of how to use XRay in LLVM.
An example of how to debug an application with XRay.
:doc:`The Microsoft PDB File Format <PDB/index>`
A detailed description of the Microsoft PDB (Program Database) file format.

Development Process Documentation

Information about LLVM's development process.

The LLVM project's policy towards developers and their contributions.
How-to guide and templates for new projects that use the LLVM infrastructure. The templates (directory organization, Makefiles, and test tree) allow the project code to be located outside (or inside) the llvm/ tree, while using LLVM header files and libraries.
Describes the LLVMBuild organization and files used by LLVM to specify component descriptions.
This is a guide to preparing LLVM releases. Most developers can ignore it.
This is a guide to validate a new release, during the release process. Most developers can ignore it.
Advice on packaging LLVM into a distribution.
Describes how to use the Phabricator code review tool hosted on http://reviews.llvm.org/ and its command line interface, Arcanist.


LLVM has a thriving community of friendly and helpful developers. The two primary communication mechanisms in the LLVM community are mailing lists and IRC.

Mailing Lists

If you can't find what you need in these docs, try consulting the mailing lists.

Developer's List (llvm-dev)
This list is for people who want to be included in technical discussions of LLVM. People post to this list when they have questions about writing code for or using the LLVM tools. It is relatively low volume.
Commits Archive (llvm-commits)
This list contains all commit messages that are made when LLVM developers commit code changes to the repository. It also serves as a forum for patch review (i.e. send patches here). It is useful for those who want to stay on the bleeding edge of LLVM development. This list is very high volume.
Bugs & Patches Archive (llvm-bugs)
This list gets emailed every time a bug is opened and closed. It is higher volume than the LLVM-dev list.
Test Results Archive (llvm-testresults)
A message is automatically sent to this list by every active nightly tester when it completes. As such, this list gets email several times each day, making it a high volume list.
LLVM Announcements List (llvm-announce)
This is a low volume list that provides important announcements regarding LLVM. It gets email about once a month.


Users and developers of the LLVM project (including subprojects such as Clang) can be found in #llvm on irc.oftc.net.

This channel has several bots.

  • Buildbot reporters
  • robot - Bugzilla linker. %bug <number>
  • clang-bot - A geordi instance running near-trunk clang instead of gcc.

Community wide proposals

Proposals for massive changes in how the community behaves and how the work flow can be better.

Proposal to adopt a code of conduct on the LLVM social spaces (lists, events, IRC, etc).
Proposal to move from SVN/Git to GitHub.
Proposal to model the process and upgrade the infrastructure of LLVM's Loop Vectorizer.

Indices and tables