May 2025
Beginner to intermediate
620 pages
18h 10m
English
In instruction selection, the legalization phase is responsible for turning crazy-looking generic intermediate representations (IRs) into something that your target can run. For instance, there is little chance that your target can run 3-bit or 13-bit arithmetic natively; instead, these operations have to be emulated on your natively supported operations.
In this chapter, you will learn how to guide the legalization infrastructure of the generic instruction selection frameworks, namely, the SelectionDAG instruction selection (SDISel) framework and the Global instruction selection (GlobalISel) framework, to support any type of input IR. We will use SDISel and GlobalISel as nouns in the rest of ...
Read now
Unlock full access