After optimizing the LLVM IR, it needs to be converted into machine instructions for execution. The machine-independent code generator interface gives an abstract layer that helps convert IR into machine instructions. In this phase, the IR is converted into SelectionDAG (DAG stands for Directed Acyclic Graph). Various phases work on the nodes of SelectionDAG. This chapter describes the important phases in target-independent code generation.
LLVM Cookbook
LLVM Cookbook
Overview of this book
Table of Contents (16 chapters)
LLVM Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
LLVM Design and Use
Steps in Writing a Frontend
Extending the Frontend and Adding JIT Support
Preparing Optimizations
Implementing Optimizations
Target-independent Code Generator
Optimizing the Machine Code
Writing an LLVM Backend
Using LLVM for Various Useful Projects
Index
Customer Reviews