-
Book Overview & Buying
-
Table Of Contents
LLVM Code Generation
By :
Now that you have completed reading this chapter, try answering the following questions to test your knowledge:
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.
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.