Contents of the LLVM mono repository
In Chapter 1, Installing LLVM, you cloned the LLVM mono repository. This repository contains all LLVM top-level projects. They can be grouped as follows:
- LLVM core libraries and additions
- Compilers and tools
- Runtime libraries
In the next sections, we will take a closer look at these groups.
LLVM core libraries and additions
The LLVM core libraries are in the llvm
directory. This project provides a set of libraries with optimizers and code generation for well-known CPUs. It also provides tools based on these libraries. The LLVM static compiler llc
takes a file written in LLVM intermediate representation (IR) as input and compiles it into either bitcode, assembler output, or a binary object file. Tools such as llvm-objdump
and llvm-dwarfdump
let you inspect object files, and those such as llvm-ar
let you create an archive file from a set of object files. It also includes tools that help with the development of LLVM itself...