Quiz time
Now that you have completed reading this chapter, try answering the following questions to test your knowledge.
- What is the purpose of the register bank selection phase in GlobalISel?
The register bank selection phase optimizes cross-register bank copies.
See the The goal of the register bank selection section for more details.
- What is the main advantage of using the selection patterns as opposed to plain C++ implementations for the different selectors?
The selection patterns, written in TableGen, offer a declarative way to describe your instruction selection patterns and are portable across the different selection frameworks. The portability has some limitations, but this is the best way to share code across the selectors.
More information on how to use them is in the Expressing your selection patterns and Importing the selection patterns sections.
- What selection pattern construct can you use to match target-specific...