Technical requirements
In this chapter, you will use C/C++ programs to build your mental model of how LLVM IR is structured. To perform the translation, we will use the methods that you discovered in the Experimenting with Clang section in Chapter 1. As such, you will need an installation of Clang available. Refer to Chapter 1 on how to get this.
Additionally, in the ch7
directory of the GitHub repository of this book, https://github.com/PacktPublishing/LLVM-Code-Generation.git, we provide examples of how to perform this translation.
Now that your setup is in order, let us move to the section that introduces what an IR is.