Articoli correlati a LLVM Code Generation: A deep dive into compiler backend...

LLVM Code Generation: A deep dive into compiler backend development - Brossura

 
9781837637782: LLVM Code Generation: A deep dive into compiler backend development

Sinossi

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 and Understanding the Directory Structure
  2. Contributing to LLVM
  3. Compiler Basics and How They Map to LLVM APIs
  4. Writing Your First Optimization
  5. Dealing with Pass Managers
  6. TableGen – LLVM Swiss Army Knife for Modeling
  7. Understanding LLVM IR
  8. Survey of the Existing Passes
  9. Introducing Target-Specific Constructs
  10. Hands-On Debugging LLVM IR Passes
  11. Legacy Instruction Selection Framework - SelectionDAG
  12. Getting Started with the Machine Code Layer
  13. The Machine Pass Pipeline
  14. Getting Started with Instruction Selection
  15. Instruction Selection: The IR Building Phase
  16. Instruction Selection: The Legalization Phase
  17. Instruction Selection: The Selection Phase and Beyond
  18. Instruction Scheduling
  19. Register Allocation
  20. Lowering of the Stack Layout
  21. Getting Started with the Assembler

Le informazioni nella sezione "Riassunto" possono far riferimento a edizioni diverse di questo titolo.

Informazioni sull?autore

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.

Le informazioni nella sezione "Su questo libro" possono far riferimento a edizioni diverse di questo titolo.

Compra usato

Condizioni: come nuovo
Unread book in perfect condition...
Visualizza questo articolo

EUR 17,05 per la spedizione da U.S.A. a Italia

Destinazione, tempi e costi

EUR 7,68 per la spedizione da U.S.A. a Italia

Destinazione, tempi e costi

Risultati della ricerca per LLVM Code Generation: A deep dive into compiler backend...

Foto dell'editore

Colombet, Quentin
Editore: Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Nuovo Brossura

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

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: New. Codice articolo I-9781837637782

Contatta il venditore

Compra nuovo

EUR 48,32
Convertire valuta
Spese di spedizione: EUR 7,68
Da: U.S.A. a: Italia
Destinazione, tempi e costi

Quantità: Più di 20 disponibili

Aggiungi al carrello

Foto dell'editore

Colombet, Quentin
Editore: Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Nuovo Brossura

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

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: New. Codice articolo 50290587-n

Contatta il venditore

Compra nuovo

EUR 45,99
Convertire valuta
Spese di spedizione: EUR 17,05
Da: U.S.A. a: Italia
Destinazione, tempi e costi

Quantità: Più di 20 disponibili

Aggiungi al carrello

Foto dell'editore

Quentin Colombet
Editore: Packt Publishing Limited, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Nuovo Paperback / softback
Print on Demand

Da: THE SAINT BOOKSTORE, Southport, Regno Unito

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Paperback / softback. Condizione: New. This item is printed on demand. New copy - Usually dispatched within 5-9 working days 526. Codice articolo C9781837637782

Contatta il venditore

Compra nuovo

EUR 57,35
Convertire valuta
Spese di spedizione: EUR 10,08
Da: Regno Unito a: Italia
Destinazione, tempi e costi

Quantità: Più di 20 disponibili

Aggiungi al carrello

Foto dell'editore

Colombet, Quentin
Editore: Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Antico o usato Brossura

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

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: As New. Unread book in perfect condition. Codice articolo 50290587

Contatta il venditore

Compra usato

EUR 51,79
Convertire valuta
Spese di spedizione: EUR 17,05
Da: U.S.A. a: Italia
Destinazione, tempi e costi

Quantità: Più di 20 disponibili

Aggiungi al carrello

Foto dell'editore

Colombet, Quentin
Editore: Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Antico o usato Brossura

Da: GreatBookPricesUK, Woodford Green, Regno Unito

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: As New. Unread book in perfect condition. Codice articolo 50290587

Contatta il venditore

Compra usato

EUR 56,59
Convertire valuta
Spese di spedizione: EUR 17,38
Da: Regno Unito a: Italia
Destinazione, tempi e costi

Quantità: Più di 20 disponibili

Aggiungi al carrello

Foto dell'editore

Colombet, Quentin
Editore: Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Nuovo Brossura

Da: GreatBookPricesUK, Woodford Green, Regno Unito

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: New. Codice articolo 50290587-n

Contatta il venditore

Compra nuovo

EUR 57,34
Convertire valuta
Spese di spedizione: EUR 17,38
Da: Regno Unito a: Italia
Destinazione, tempi e costi

Quantità: Più di 20 disponibili

Aggiungi al carrello

Foto dell'editore

Colombet, Quentin
Editore: Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Nuovo Brossura

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

Valutazione del venditore 4 su 5 stelle 4 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: New. Codice articolo 26403832556

Contatta il venditore

Compra nuovo

EUR 76,13
Convertire valuta
Spese di spedizione: EUR 7,68
Da: U.S.A. a: Italia
Destinazione, tempi e costi

Quantità: 4 disponibili

Aggiungi al carrello

Immagini fornite dal venditore

Quentin Colombet
Editore: Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Nuovo Taschenbuch
Print on Demand

Da: AHA-BUCH GmbH, Einbeck, Germania

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Taschenbuch. Condizione: Neu. nach der Bestellung gedruckt Neuware - Printed after ordering - LLVM is a key technology for building modern compilers. Codice articolo 9781837637782

Contatta il venditore

Compra nuovo

EUR 72,86
Convertire valuta
Spese di spedizione: EUR 14,99
Da: Germania a: Italia
Destinazione, tempi e costi

Quantità: 2 disponibili

Aggiungi al carrello

Foto dell'editore

Colombet, Quentin
Editore: Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Nuovo Brossura
Print on Demand

Da: Majestic Books, Hounslow, Regno Unito

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: New. Print on Demand. Codice articolo 409354547

Contatta il venditore

Compra nuovo

EUR 77,61
Convertire valuta
Spese di spedizione: EUR 10,26
Da: Regno Unito a: Italia
Destinazione, tempi e costi

Quantità: 4 disponibili

Aggiungi al carrello

Foto dell'editore

Colombet, Quentin
Editore: Packt Publishing, 2025
ISBN 10: 1837637784 ISBN 13: 9781837637782
Nuovo Brossura
Print on Demand

Da: Biblios, Frankfurt am main, HESSE, Germania

Valutazione del venditore 4 su 5 stelle 4 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: New. PRINT ON DEMAND. Codice articolo 18403832550

Contatta il venditore

Compra nuovo

EUR 81,85
Convertire valuta
Spese di spedizione: EUR 7,95
Da: Germania a: Italia
Destinazione, tempi e costi

Quantità: 4 disponibili

Aggiungi al carrello