Become a Readings Member to make your shopping experience even easier. Sign in or sign up for free!

Become a Readings Member. Sign in or sign up for free!

Hello Readings Member! Go to the member centre to view your orders, change your details, or view your lists, or sign out.

Hello Readings Member! Go to the member centre or sign out.

LLVM Code Generation
Paperback

LLVM Code Generation

$159.99
Sign in or become a Readings Member to add this title to your wishlist.

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 DescriptionThe 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 forThis 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.

Read More
In Shop
Out of stock
Shipping & Delivery

$9.00 standard shipping within Australia
FREE standard shipping within Australia for orders over $100.00
Express & International shipping calculated at checkout

MORE INFO
Format
Paperback
Publisher
Packt Publishing Limited
Country
United Kingdom
Date
23 May 2025
ISBN
9781837637782

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 DescriptionThe 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 forThis 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.

Read More
Format
Paperback
Publisher
Packt Publishing Limited
Country
United Kingdom
Date
23 May 2025
ISBN
9781837637782