Technical requirements
In this chapter, we will leverage the LLVM developer tool named opt
to discover the available transformations in the middle end.
To get it, either build it from the LLVM source or download an official LLVM release. Both methods are explained in Chapter 1.
We recommend using a version built from the sources because this will ensure that the information that you get out of opt
is in sync with the sources that you have access to. Of course, you can also extract the right branch from the LLVM repository to be in sync with what you downloaded, or directly download the source from the related release (https://releases.llvm.org/).
Finally, in the ch8
directory of the GitHub repository of this book, https://github.com/PacktPublishing/LLVM-Code-Generation.git, we provide the examples that we use in the various sections.
Let us get started with how you even begin this journey of finding what the middle end has to offer.