Book

Learn LLVM 12

Learn LLVM 12 will show you how to build your own compiler, covering everything from reading the source to emitting optimized machine code. The book also shows you how to take advantage of the Just-in-Time (JIT) compilation framework, extend LLVM in a variety of ways, and apply the right tools to help you spot problems in your own compiler.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

13h4m

Language

English

About Book

Who Is This Book For?

This book is for compiler developers, enthusiasts, and engineers who are new to LLVM and are interested in learning about the LLVM framework. It is also useful for C++ software engineers looking to use compiler-based tools for code analysis and improvement, as well as casual users of LLVM libraries who want to gain more knowledge of LLVM essentials. Intermediate-level experience with C++ programming is mandatory to understand the concepts covered in this book more effectively.

Book content

chapters 13h4m total length

Installing LLVM

Touring the LLVM source

The Structure of a Compiler

Turning the Source File into an Abstract Syntax Tree

Basics of IR Generation

IR Generation for High-Level Language Constructs

Advanced IR Generation

Optimizing IR

Instruction Selection

JIT Compilation

Debugging Using LLVM Tools

Creating Your Own Backend

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required