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

Lighting Up: The Rise of Social Smoking on College Campuses
Lighting Up: The Rise of Social Smoking on College Campuses
While the past 40 years have seen significant declines in adult smoking, this is not the case among young adults, who have the highest prevalence of smoking of all other age groups. At a time when just about everyone knows that smoking is bad for you, why do so many college students smoke? Is it a short lived phase or do they continue...
Getting a Business Loan: Financing Your Main Street Business
Getting a Business Loan: Financing Your Main Street Business

Every day,  Main Street businesses wrestle with the challenge of finding the cash to finance growth or use as working capital. The local banker often wants a credit score of 720, three or more years in business, and a fat savings account. No wonder local bankers approve only 10% of loan applications.

Getting a
...

The Warren Buffett Way
The Warren Buffett Way

Warren Buffett is the most famous investor of all time and one of today’s most admired business leaders. He became a billionaire and investment sage by looking at companies as businesses rather than prices on a stock screen. The first two editions of The Warren Buffett Way gave investors their first in-depth look at the...


Web Caching and Its Applications (The Springer International Series in Engineering and Computer Science)
Web Caching and Its Applications (The Springer International Series in Engineering and Computer Science)
The last decade has seen tremendous growth in usage of the World Wide Web. Web caching is a technology aimed at reducing the transmission of redundant network traffic and improving access to the Web. The key idea in Web caching is to cache frequently- accessed content so that it may be used profitably later. This leads to cost savings, reduction in...
Moodle Course Design Best Practices
Moodle Course Design Best Practices

Learn the best practices to design and develop interactive and highly effective Moodle courses

Overview

  • Explore Moodle's course development features like themes, social media plugins and archiving content
  • Bring together instructional materials, social interaction, and student management...
The InfoSec Handbook: An Introduction to Information Security
The InfoSec Handbook: An Introduction to Information Security

The InfoSec Handbook offers the reader an organized layout of information that is easily read and understood. Allowing beginners to enter the field and understand the key concepts and ideas, while still keeping the experienced readers updated on topics and concepts.

It is intended mainly for beginners to the field of...

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