Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries: Design powerful and reliable compilers using the latest libraries and tools from LLVM

Buy

Learn how you can build the next big programming language, compiler, or source code analyzer using LLVM and Clang

Key Features

  • Explore Clang, LLVM's middle-end and backend, in a pragmatic way
  • Develop your LLVM skillset and get to grips with a variety of common use cases
  • Engage with real-world LLVM development through various coding examples

Book 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 learn

  • Find out how LLVM's build system works and how to reduce the building resource
  • Get to grips with running custom testing with LLVM's LIT framework
  • Build different types of plugins and extensions for Clang
  • Customize Clang's toolchain and compiler flags
  • Write LLVM passes for the new PassManager
  • Discover how to inspect and modify LLVM IR
  • Understand how to use LLVM's profile-guided optimizations (PGO) framework
  • Create custom compiler sanitizers

Who 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.

Table of Contents

  1. Saving resources when building LLVM from source
  2. Exploring LLVM's Build System Features
  3. Advanced usages of LLVM LIT
  4. TableGen Development: For Fun and For Profit
  5. Exploring Clang's Architecture
  6. Extending the preprocessors
  7. Handling AST
  8. Working with Compiler Flags and Toolchains
  9. All you need to know about the new PassManager and AnalysisManager
  10. Processing IR in a proper way
  11. Gearing up with support utilities
  12. PGO and Sanitizers developments
(HTML tags aren't allowed.)

Microsoft Visual Basic 2008 Express Programming for the Absolute Beginner
Microsoft Visual Basic 2008 Express Programming for the Absolute Beginner

Want to learn to program in Windows but don?t know where to start? Look no further! This book is designed to teach you how to develop Windows applications using Microsoft Visual Basic 2008 Express. To help make learning fun and interesting, you will learn how to program through the development of computer games, and you will develop a new...

Information Development: Managing Your Documentation Projects, Portfolio, and People
Information Development: Managing Your Documentation Projects, Portfolio, and People
A revolutionary new resource that brings documentation product management ideas up to date

The 1994 bestselling classic Managing Your Documentation Projects set the industry standard for technical documentation. However, since then, much has changed in the world of information development. With this new title, JoAnn...

Innovations in Robot Mobility and Control (Studies in Computational Intelligence)
Innovations in Robot Mobility and Control (Studies in Computational Intelligence)

There exists quite a vast literature on mobile robots, covering fundamental principles on motion control and path-planning in indoor environments using ultrasonic/laser transducers. However, there is a scarcity of books/collective documents on vision based navigation of mobile robots and multi-agent systems. The book fills this gap and attempts...


Using Drupal
Using Drupal

Take advantage of Drupal’s vast collection of community-contributed modules and discover how they make this web framework unique and valuable. With this guide, you’ll learn how to combine modules in interesting ways (with minimal code-wrangling) to develop several community-driven websites— including a job posting...

Professional Android 4 Application Development (Wrox Professional Guides)
Professional Android 4 Application Development (Wrox Professional Guides)

Developers, build mobile Android apps using Android 4

The fast-growing popularity of Android smartphones and tablets creates a huge opportunities for developers. If you're an experienced developer, you can start creating robust mobile Android apps right away with this professional guide to Android 4 application...

Writing mental ray® Shaders: A Perceptual Introduction (mental ray® Handbooks)
Writing mental ray® Shaders: A Perceptual Introduction (mental ray® Handbooks)

The word "render" isn't unique to the vocabulary of computer graphics. We can talk about a "watercolor rendering," a "musical rendering" or a "poetic rendering." In each of these, there is a transformation from one domain to another: from the landscape before the painter to color on paper, from...

©2021 LearnIT (support@pdfchm.net) - Privacy Policy