Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
LLVM Code Generation

You're reading from   LLVM Code Generation A deep dive into compiler backend development

Arrow left icon
Product type Paperback
Published in May 2025
Publisher Packt
ISBN-13 9781837637782
Length 608 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Quentin Colombet Quentin Colombet
Author Profile Icon Quentin Colombet
Quentin Colombet
Arrow right icon
View More author details
Toc

Table of Contents (29) Chapters Close

Preface 1. Getting Started with LLVM
2. Building LLVM and Understanding the Directory Structure FREE CHAPTER 3. Contributing to LLVM 4. Compiler Basics and How They Map to LLVM APIs 5. Writing Your First Optimization 6. Dealing with Pass Managers 7. TableGen – LLVM Swiss Army Knife for Modeling 8. Middle-End: LLVM IR to LLVM IR
9. Understanding LLVM IR 10. Survey of the Existing Passes 11. Introducing Target-Specific Constructs 12. Hands-On Debugging LLVM IR Passes 13. Introduction to the Backend
14. Getting Started with the Backend 15. Getting Started with the Machine Code Layer 16. The Machine Pass Pipeline 17. LLVM IR to Machine IR
18. Getting Started with Instruction Selection 19. Instruction Selection: The IR Building Phase 20. Instruction Selection: The Legalization Phase 21. Instruction Selection: The Selection Phase and Beyond 22. Final Lowering and Optimizations
23. Instruction Scheduling 24. Register Allocation 25. Lowering of the Stack Layout 26. Getting Started with the Assembler 27. Other Books You May Enjoy
28. Index

Getting Started with LLVM

In this part, we start with an introduction to the LLVM ecosystem, its community, and the various parts that make up the LLVM infrastructure.

This part assumes that you have no prior experience with LLVM and little to no experience with compilers.

More specifically, in this part, you will learn the following:

  • How to set up your environment to build and test the different projects that the LLVM infrastructure offers
  • How to interact with the LLVM community and, in particular, how to seek help and contribute
  • About the basic concepts used in compilers and how to manipulate them through the LLVM application programming interfaces (APIs)
  • How to write your first optimization pass and the things to consider while optimizing your program
  • How to build and customize your optimization pipeline
  • How TableGen, LLVM’s domain-specific language (DSL), fits into the LLVM infrastructure

By the end of this part, you will have a complete picture of the overall structure of the LLVM infrastructure and will be ready to dive into its inner workings.

This part of the book includes the following chapters:

  • Chapter 1, Building LLVM and Understanding the Directory Structure
  • Chapter 2, Contributing to LLVM
  • Chapter 3, Compiler Basics and How They Map to the LLVM APIs
  • Chapter 4, Writing Your First Optimization
  • Chapter 5, Dealing with the Pass Managers
  • Chapter 6, TableGen - The LLVM Swiss Army Knife for Modeling
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime