Quiz time
Now that you have completed reading this chapter, try answering these questions to test your knowledge:
- What target-specific lowering must the IR building phase materialize?
Aside from building the IR of the related instruction selection framework, the IR building phase is responsible for the lowering of the ABI and specifically the calling convention.
See the Overview of the IR building section for more details.
- What are the three code sequences that you need to generate for the lowering of calls?
You need to be able to produce a code sequence for reading the input arguments of a function, prepare the argument of an outgoing function, and read the returned value of a function.
Look at the Overview of the IR building section for an illustration of what this looks like.
- What is the usage of the
gen-callingconv
TableGen backend?
This TableGen backend allows you to describe the location of the arguments and...