Chapter 9. Using LLVM for Various Useful Projects

In this chapter, we will cover the following recipes:

  • Exception handling in LLVM
  • Using sanitizers
  • Writing the garbage collector with LLVM
  • Converting LLVM IR to JavaScript
  • Using the Clang Static Analyzer
  • Using bugpoint
  • Using LLDB
  • Using LLVM utility passes

Introduction

Until now, you have learned how to write the frontend of a compiler, write optimizations and create a backend. In this chapter, the last of this book, we will look into some other features that the LLVM infrastructure provides and how we can use them in our projects. We won't be diving very deep into the details of the topics in this chapter. The main point is to let you know about these important tools and techniques, which are hot points in ...

Get LLVM Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.