May 2025
Beginner to intermediate
620 pages
18h 10m
English
In the previous chapter, you learned how to connect a specific instruction selection framework in your backend. In this chapter, we will study the first phase of the instruction selection pipeline.
The first phase of the instruction selection pipeline consists of lowering the LLVM intermediate representation (IR) down to the generic IR of the instruction selection framework that you chose. This phase is called the IR building phase.
The LLVM target-independent code generator, or codegen, relies on some target hooks to make this IR building suitable for your backend, and in this chapter, you will learn how to supply this information and to leverage the existing infrastructure to be the most productive ...
Read now
Unlock full access