Optimization passes
In this section, you will discover some of the passes that you can leverage to improve the quality of the codegen of your target.
LLVM is a huge code base, so we cannot realistically cover all of the passes. This is why we again strongly recommend applying what you learned in the How to find the unknown section earlier in this chapter to discover what is available.
To help you in this task, the following sections give you a sort of identity card for a few of the passes available in the middle end. The sections are broken down following the directory structure of the LLVM code base.
The goal of these ID cards is to give you a single source of key information to use and understand a pass and that you can use as a quick reference in the future.
Feel free to complete this list by yourself or produce your own card format!
The identity card contains the following fields:
- Pass name: Human-readable pass name
- Class pass name: Name of...