Technical requirements
In this chapter, we will build LLVM from sources, and as such, all the requirements of Chapter 1 apply. In other words, you need a working version of Git, CMake, Python, and a C++ toolchain. Refer to Chapter 1 to see how to meet these requirements.
Additionally, in this chapter, we introduce a second repository for all the changes that need to happen directly in LLVM when adding a new backend. This repository is available at https://github.com/PacktPublishing/LLVM-Code-Generation-by-example This repository is a clone of the LLVM open source repository, which we augmented with all the code changes that are required to create a new backend.
In other words, this repository holds the complete code changes that are mentioned in the snippets presented in this chapter, and by looking at the details of each commit, you can see how things connect in the build system, and so on. To look at the details of each commit, you can use the git log -p
command line on...