Technical requirements
As in the previous chapter, you’ll need a version of LLVM to play with the Machine IR. You can use either one of the recent LLVM releases – for instance, from LLVM 17
and up – or build LLVM directly from its source code. Please see Chapter 1 on how to build LLVM if you need help with that.
Additionally, in this book’s GitHub repository, which is available at https://github.com/PacktPublishing/LLVM-Code-Generation, you’ll find a folder named ch11
that contains the examples and exercises that we’ll be implementing in this chapter.
Later in this chapter, we’ll start implementing something in an actual LLVM backend. You can find all the necessary commits and details by looking at the GitHub log available at https://github.com/PacktPublishing/LLVM-Code-Generation-by-example, between the begin_ch11
and end_ch11
tags. Note that we call this repository the companion repository. The commits that have been referenced...