Technical requirements
Continuing our effort of building the instruction selection pipeline of our LLVM backend, the same requirements as Chapter 14 apply.
Additionally, for all the snippets presented in this chapter, you will find the actual implementation in the https://github.com/PacktPublishing/LLVM-Code-Generation-by-example GitHub repository. We call this repository the companion repository in the remainder of the chapter.
The changes for this chapter are all included between the Git tags begin_ch15
and end_ch15
of the companion repository. If you are not familiar with Git tags, look at Chapter 9 for a quick explanation of what you can do with them. Throughout the chapter, we also mention specific tags that we created in this repository for you to easily find the relevant commits.
Let’s now get familiar with what the IR building phase is about in detail.