Technical requirements
For this chapter, we recommend that you have a copy of the LLVM source code so that you can look at the content of the CodeGen
library in the llvm/lib/CodeGen
and llvm/include/llvm/CodeGen
directories. These directories contain passes and helper classes that are used throughout the target-independent code generator. Note that the paths are expressed relative to the root directory of the LLVM code base.
You can find a copy of the LLVM code base at one of the following locations:
- The official LLVM releases website: https://releases.llvm.org
- The official LLVM GitHub repository: https://github.com/llvm/llvm-project
- This book’s GitHub repository: https://github.com/PacktPublishing/LLVM-Code-Generation
Additionally, you’ll need a version of the LLVM binaries to be able to run the examples that live in the ch13
folder of this book’s GitHub repository at https://github.com/PacktPublishing/LLVM-Code-Generation...