Book Image

LLVM Cookbook

Book Image

LLVM Cookbook

Overview of this book

Table of Contents (16 chapters)
LLVM Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Writing an LLVM Backend

In this chapter, we will cover the following recipes:

  • Defining registers and register sets

  • Defining the calling convention

  • Defining the instruction set

  • Implementing frame lowering

  • Printing an instruction

  • Selecting an instruction

  • Adding instruction encoding

  • Supporting a subtarget

  • Lowering to multiple instructions

  • Registering a target