Quiz time
Now that you have completed reading this chapter, try answering the following questions to test your knowledge:
- What is the goal of legalization?
The goal of the legalization phase is to emulate constructs that are not natively supported in your backend with instructions that are natively supported in your backend.
See the Legalization overview section for more details.
- How do you drive the legalization decisions?
You drive the legalization decisions by providing the generic frameworks with a set of rules that tell them the legalization action that needs to happen for a pair of opcode and type.
See the Legalization actions, Describing your legalization actions, and Describing your legalization actions with the LegalizeRuleSet class sections for an overview of the legalization actions, how you use them in SDISel, and how you use them in GlobalISel, respectively.
- In SDISel, what does the concept of legal type capture...