LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries

LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries
Author :
Publisher : Packt Publishing Ltd
Total Pages : 370
Release :
ISBN-10 : 9781838829728
ISBN-13 : 1838829725
Rating : 4/5 (725 Downloads)

Book Synopsis LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries by : Min-Yih Hsu

Download or read book LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries written by Min-Yih Hsu and published by Packt Publishing Ltd. This book was released on 2021-04-22 with total page 370 pages. Available in PDF, EPUB and Kindle. Book excerpt: Learn how you can build the next big programming language, compiler, or source code analyzer using LLVM and Clang Key FeaturesExplore Clang, LLVM’s middle-end and backend, in a pragmatic wayDevelop your LLVM skillset and get to grips with a variety of common use casesEngage with real-world LLVM development through various coding examplesBook Description Every programmer or engineer, at some point in their career, works with compilers to optimize their applications. Compilers convert a high-level programming language into low-level machine-executable code. LLVM provides the infrastructure, reusable libraries, and tools needed for developers to build their own compilers. With LLVM’s extensive set of tooling, you can effectively generate code for different backends as well as optimize them. In this book, you’ll explore the LLVM compiler infrastructure and understand how to use it to solve different problems. You’ll start by looking at the structure and design philosophy of important components of LLVM and gradually move on to using Clang libraries to build tools that help you analyze high-level source code. As you advance, the book will show you how to process LLVM IR – a powerful way to transform and optimize the source program for various purposes. Equipped with this knowledge, you’ll be able to leverage LLVM and Clang to create a wide range of useful programming language tools, including compilers, interpreters, IDEs, and source code analyzers. By the end of this LLVM book, you’ll have developed the skills to create powerful tools using the LLVM framework to overcome different real-world challenges. What you will learnFind out how LLVM’s build system works and how to reduce the building resourceGet to grips with running custom testing with LLVM’s LIT frameworkBuild different types of plugins and extensions for ClangCustomize Clang’s toolchain and compiler flagsWrite LLVM passes for the new PassManagerDiscover how to inspect and modify LLVM IRUnderstand how to use LLVM’s profile-guided optimizations (PGO) frameworkCreate custom compiler sanitizersWho this book is for This book is for software engineers of all experience levels who work with LLVM. If you are an academic researcher, this book will help you learn useful LLVM skills in a short time and enable you to build your prototypes and projects quickly. Programming language enthusiasts will also find this book useful for building a new programming language with the help of LLVM.


LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries Related Books

LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries
Language: en
Pages: 370
Authors: Min-Yih Hsu
Categories: Computers
Type: BOOK - Published: 2021-04-22 - Publisher: Packt Publishing Ltd

GET EBOOK

Learn how you can build the next big programming language, compiler, or source code analyzer using LLVM and Clang Key FeaturesExplore Clang, LLVM’s middle-end
Learn LLVM 12
Language: en
Pages: 393
Authors: Kai Nacke
Categories: Computers
Type: BOOK - Published: 2021-05-28 - Publisher: Packt Publishing Ltd

GET EBOOK

Learn how to build and use all parts of real-world compilers, including the frontend, optimization pipeline, and a new backend by leveraging the power of LLVM c
Getting Started with LLVM Core Libraries
Language: en
Pages: 487
Authors: Bruno Cardoso Lopes
Categories: Computers
Type: BOOK - Published: 2014-08-26 - Publisher: Packt Publishing Ltd

GET EBOOK

This book is intended for enthusiasts, computer science students, and compiler engineers interested in learning about the LLVM framework. You need a background
LLVM Essentials
Language: en
Pages: 166
Authors: Suyog Sarda
Categories: Computers
Type: BOOK - Published: 2015-12-21 - Publisher: Packt Publishing Ltd

GET EBOOK

Become familiar with the LLVM infrastructure and start using LLVM libraries to design a compiler About This Book Learn to use the LLVM libraries to emit interme
Build Your Own Programming Language
Language: en
Pages: 495
Authors: Clinton L. Jeffery
Categories: Computers
Type: BOOK - Published: 2021-12-31 - Publisher: Packt Publishing Ltd

GET EBOOK

Written by the creator of the Unicon programming language, this book will show you how to implement programming languages to reduce the time and cost of creatin