Technical requirements
As you did in the previous chapter, you will need a version of LLVM to play with the Machine intermediate representation (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.
For the part that involves implementing something in an actual LLVM backend, you will find all the necessary commits and details by looking at the Git log of the https://github.com/PacktPublishing/LLVM-Code-Generation-by-example repository between the begin_ch12
and end_ch12
tags. Note that we call this repository the companion repository.
Let us now see when you will encounter the Machine IR.