12
Instruction Selection
The heart of any backend is instruction selection. LLVM implements several approaches; in this chapter, we will implement instruction selection via the selection directed acyclic graph (DAG) and with global instruction selection.
In this chapter, you will learn about the following topics:
- Defining the rules of the calling convention: This section shows you how to describe the rules of a calling convention in the target description
- Instruction selection via the selection DAG: This section teaches you how to implement instruction selection with a graph data structure
- Adding register and instruction information: This section explains how to access information in the target description, and what additional information you ...
Get Learn LLVM 17 - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.