Items related to LLVM Code Generation: A Deep Dive into Compiler Backend...

LLVM Code Generation: A Deep Dive into Compiler Backend Development - Softcover

 
9781837637782: LLVM Code Generation: A Deep Dive into Compiler Backend Development

Synopsis

Explore the world of code generation with the LLVM infrastructure, and learn how to extend existing backends or develop your own

Key Features

  • Understand the steps involved in generating assembly code from LLVM IR
  • Learn the key constructs needed to leverage LLVM for your hardware or backend
  • Strengthen your understanding with targeted exercises and practical examples in every chapter
  • Purchase of the print or Kindle book includes a free PDF eBook

Book Description

The LLVM infrastructure is a popular compiler ecosystem widely used in the tech industry and academia. This technology is crucial for both experienced and aspiring compiler developers looking to make an impact in the field. Written by Quentin Colombet, a veteran LLVM contributor and architect of the GlobalISel framework, this book provides a primer on the main aspects of LLVM, with an emphasis on its backend infrastructure; that is, everything needed to transform the intermediate representation (IR) produced by frontends like Clang into assembly code and object files.

You’ll learn how to write an optimizing code generator for a toy backend in LLVM. The chapters will guide you step by step through building this backend while exploring key concepts, such as the ABI, cost model, and register allocation. You’ll also find out how to express these concepts using LLVM's existing infrastructure and how established backends address these challenges. Furthermore, the book features code snippets that demonstrate the actual APIs.

By the end of this book, you’ll have gained a deeper understanding of LLVM. The concepts presented are expected to remain stable across different LLVM versions, making this book a reliable quick reference guide for understanding LLVM.

What you will learn

  • Understand essential compiler concepts, such as SSA, dominance, and ABI
  • Build and extend LLVM backends for creating custom compiler features
  • Optimize code by manipulating LLVM's Intermediate Representation
  • Contribute effectively to LLVM open-source projects and development
  • Develop debugging skills for LLVM optimizations and passes
  • Grasp how encoding and (dis)assembling work in the context of compilers
  • Utilize LLVM's TableGen DSL for creating custom compiler models

Who this book is for

This book is for both beginners to LLVM and experienced LLVM developers. If you’re new to LLVM, it offers a clear, approachable guide to compiler backends, starting with foundational concepts. For seasoned LLVM developers, it dives into less-documented areas such as TableGen, MachineIR, and MC, enabling you to solve complex problems and expand your expertise. Whether you’re starting out or looking to deepen your knowledge, this book has something for you.

Table of Contents

  1. Building LLVM, Understanding the Directory Structure
  2. Compiler Basics and How They Map to LLVM Structures
  3. Dealing with the Pass Pipeline
  4. TableGen: LLVM's Swiss Army Knife for Modeling
  5. Understanding LLVM IR
  6. Survey of the Existing Passes
  7. Introducing Target-Specific Constructs - Custom Passes, Intrinsic, Cost Model
  8. Hands-On Debugging LLVM IR Passes
  9. Understanding MachineIR
  10. Machine Pass Pipeline - Hypothesis, Optimizations, and Target Hooks
  11. Legacy Instruction Selection Framework - SelectionDAG
  12. The New Instruction Selection Framework - GlobalISel
  13. Instruction Scheduling - Data Dependency Graph and Scheduling Model
  14. Register Allocation - Coalescing, Spilling, and Register Assignment
  15. Hands-On Debugging MachineIR Passes
  16. Understanding MC

(N.B. Please use the Read Sample option to see further chapters)

"synopsis" may belong to another edition of this title.

About the Author

Quentin Colombet is a veteran LLVM contributor specializing in compiler backends. He is the architect of the new instruction selection framework (GlobalISel) and code owner of the LLVM register allocators. With over two decades of experience, he has worked on compiler backends for a variety of architectures, including GPU, CPU, microcontrollers, DSP, and ASICs. Quentin joined Apple in 2012 and has contributed to x86, Aarch64, and Apple GPU backends. He is passionate about helping newcomers onboard the LLVM infrastructure, having mentored interns and new hires over the years.

"About this title" may belong to another edition of this title.

Buy Used

Condition: As New
Unread book in perfect condition...
View this item

FREE shipping within United Kingdom

Destination, rates & speeds

Search results for LLVM Code Generation: A Deep Dive into Compiler Backend...

Stock Image

Colombet, Quentin
Published by Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Used Softcover

Seller: GreatBookPricesUK, Woodford Green, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: As New. Unread book in perfect condition. Seller Inventory # 50290587

Contact seller

Buy Used

£ 47.41
Convert currency
Shipping: FREE
Within United Kingdom
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Colombet, Quentin
Published by Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
New Softcover

Seller: GreatBookPricesUK, Woodford Green, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 50290587-n

Contact seller

Buy New

£ 48.04
Convert currency
Shipping: FREE
Within United Kingdom
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Quentin Colombet
Published by Packt Publishing Limited, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
New Paperback / softback
Print on Demand

Seller: THE SAINT BOOKSTORE, Southport, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback / softback. Condition: New. This item is printed on demand. New copy - Usually dispatched within 5-9 working days 526. Seller Inventory # C9781837637782

Contact seller

Buy New

£ 48.05
Convert currency
Shipping: FREE
Within United Kingdom
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Colombet, Quentin
Published by Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
New Softcover

Seller: California Books, Miami, FL, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # I-9781837637782

Contact seller

Buy New

£ 41.50
Convert currency
Shipping: £ 7.33
From U.S.A. to United Kingdom
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Seller Image

Colombet, Quentin
Published by Packt Publishing 5/23/2025, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
New Paperback or Softback

Seller: BargainBookStores, Grand Rapids, MI, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback or Softback. Condition: New. LLVM Code Generation: A deep dive into compiler backend development 2.27. Book. Seller Inventory # BBS-9781837637782

Contact seller

Buy New

£ 41.29
Convert currency
Shipping: £ 8.42
From U.S.A. to United Kingdom
Destination, rates & speeds

Quantity: 5 available

Add to basket

Stock Image

Colombet, Quentin
Published by Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
New Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 50290587-n

Contact seller

Buy New

£ 39.29
Convert currency
Shipping: £ 14.64
From U.S.A. to United Kingdom
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Colombet, Quentin
Published by Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Used Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: As New. Unread book in perfect condition. Seller Inventory # 50290587

Contact seller

Buy Used

£ 44.15
Convert currency
Shipping: £ 14.64
From U.S.A. to United Kingdom
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Colombet, Quentin
Published by Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
New Softcover
Print on Demand

Seller: Majestic Books, Hounslow, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Print on Demand. Seller Inventory # 409354547

Contact seller

Buy New

£ 66.94
Convert currency
Shipping: £ 3.35
Within United Kingdom
Destination, rates & speeds

Quantity: 4 available

Add to basket

Stock Image

Colombet, Quentin
Published by Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
New Softcover

Seller: Books Puddle, New York, NY, U.S.A.

Seller rating 4 out of 5 stars 4-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 26403832556

Contact seller

Buy New

£ 65.38
Convert currency
Shipping: £ 6.59
From U.S.A. to United Kingdom
Destination, rates & speeds

Quantity: 4 available

Add to basket

Seller Image

Quentin Colombet
Published by Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
New Taschenbuch
Print on Demand

Seller: AHA-BUCH GmbH, Einbeck, Germany

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Taschenbuch. Condition: Neu. nach der Bestellung gedruckt Neuware - Printed after ordering - LLVM is a key technology for building modern compilers. Seller Inventory # 9781837637782

Contact seller

Buy New

£ 64.77
Convert currency
Shipping: £ 12.07
From Germany to United Kingdom
Destination, rates & speeds

Quantity: 2 available

Add to basket

There are 1 more copies of this book

View all search results for this book