Summary
In this chapter, you learned the basics of how to start implementing your backend.
You deepened your understanding of the Machine IR and now understand how its textual representation connects to the target description of your registers, instructions, and other related concepts, such as sub-register indices.
You also learned how these concepts map to the C++ API and its TargetRegisterInfo
and TargetInstrInfo
classes, how to create instances of these classes, and how to leverage these APIs to make your debugging sessions more productive.
In the next chapter, you’ll learn how to connect the Machine representation to its MC counterpart by augmenting your target description with information about the assembly syntax and encoding.