The Target Description
LLVM has a very flexible architecture. You can also add a new target backend to it. The core of a backend is the target description, from which most of the code is generated. In this chapter, you will learn how to add support for a historical CPU.
In this chapter, you will cover the following:
- Setting the stage for a new backend introduces you to the M88k CPU architecture and shows you where to find the required information
- Adding the new architecture to the Triple class teaches you how to make LLVM aware of a new CPU architecture
- Extending the ELF file format definition in LLVM shows you how to add support for the M88k-specific relocations to the libraries and tools that handle ELF object files
- Creating the target description applies your knowledge of the TableGen language to model the register file and instructions in the target description
- Adding the M88k backend to LLVM explains the minimal infrastructure required for an LLVM backend...