LLVM IR to Machine IR
Now that the secrets of the Machine intermediate representation (IR) have been uncovered, you are ready to learn how to produce it from the LLVM IR.
This part focuses on LLVM IR to Machine IR translation. This translation is called instruction selection and the LLVM infrastructure features several instruction selection frameworks to choose from.
In this part, you will learn about the different instruction selection frameworks, how to use them, and how to provide the necessary target-specific information that they need to function.
The target-specific information that you will learn to provide includes the application binary interface (ABI) of your target, which instructions are supported, and how you get from LLVM IR to your target-specific instruction.
By the end of this part, you will be able to write a completely functional instruction selection implementation that will pave the way for the later machine pass optimizations.
This part of...