Skip to Content
LLVM Cookbook
book

LLVM Cookbook

by Mayur Pandey, Suyog Sarda
May 2015
Intermediate to advanced content levelIntermediate to advanced
296 pages
5h 10m
English
Packt Publishing
Content preview from LLVM Cookbook

Understanding modular design

LLVM is designed as a set of libraries unlike other compilers such as GNU Compiler Collection (GCC). In this recipe, LLVM optimizer will be used to understand this design. As LLVM optimizer's design is library-based, it allows you to order the passes to be run in a specified order. Also, this design allows you to choose which optimization passes you can run—that is, there might be a few optimizations that might not be useful to the type of system you are designing, and only a few optimizations will be specific to the system. When looking at traditional compiler optimizers, they are built as a tightly interconnected mass of code, that is difficult to break down into small parts that you can understand and use easily. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell
CMake Cookbook

CMake Cookbook

Radovan Bast, Roberto Di Remigio
LLVM Essentials

LLVM Essentials

Suyog Sarda, Mayur Pandey
C++20 STL Cookbook

C++20 STL Cookbook

Bill Weinman

Publisher Resources

ISBN: 9781785285981