Quiz time
Now that you have finished reading this chapter, try answering the following questions to test your knowledge:
- What are the two main frameworks that you can use to implement your instruction selection pipeline?
The two main instruction selection frameworks are SDISel and GlobalISel. They come with different trade-offs and can be both used within the same backend.
For an overview of the frameworks, look at the Overview of the instruction selection frameworks section.
- What are the three main phases involved in an instruction selection pipeline?
The three main phases are IR building, legalization, and selection. You can find more details about what each of these phases does in the How does instruction selection work? section.
- Let us say you want a good mix of generality and compile-time speed. Which selector do you think is the most appropriate?
GlobalISel offers the most flexibility between supporting a wide range...