LLVM Cookbook
eBook - ePub

LLVM Cookbook

Mayur Pandey, Suyog Sarda

Share book
  1. 296 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

LLVM Cookbook

Mayur Pandey, Suyog Sarda

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is LLVM Cookbook an online PDF/ePUB?
Yes, you can access LLVM Cookbook by Mayur Pandey, Suyog Sarda in PDF and/or ePUB format, as well as other popular books in Informatica & Linguaggi di programmazione. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781785285981

LLVM Cookbook


Table of Contents

LLVM Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. LLVM Design and Use
Introduction
Understanding modular design
Getting ready
How to do it...
How it works...
There's more...
See also
Cross-compiling Clang/LLVM
Getting ready
How to do it...
How it works...
Converting a C source code to LLVM assembly
Getting ready
How to do it...
How it works...
See also
Converting IR to LLVM bitcode
Getting Ready
How to do it...
How it works...
There's more...
See also
Converting LLVM bitcode to target machine assembly
Getting ready
How to do it...
How it works...
There's more...
Converting LLVM bitcode back to LLVM assembly
Getting ready
How to do it...
How it works...
Transforming LLVM IR
Getting ready
How to do it...
How it works...
There's more...
Linking LLVM bitcode
Getting ready
How to do it...
How it works...
Executing LLVM bitcode
Getting ready
How to do it...
How it works...
See also
Using the C frontend Clang
Getting ready
How to do itā€¦
How it works...
See also
Using the GO frontend
Getting ready
How to do itā€¦
How it worksā€¦
See also
Using DragonEgg
Getting ready
How to do Itā€¦
See also
2. Steps in Writing a Frontend
Introduction
Defining a TOY language
How to do itā€¦
Implementing a lexer
Getting ready
How to do itā€¦
How it worksā€¦
See also
Defining Abstract Syntax Tree
Getting ready
How to do itā€¦
How it worksā€¦
See also
Implementing a parser
Getting ready
How to do itā€¦
How it worksā€¦
See also
Parsing simple expressions
Getting ready
How to do itā€¦
How it worksā€¦
Parsing binary expressions
Getting ready
How to do itā€¦
See also
Invoking a driver for parsing
How to do itā€¦
How it worksā€¦
See also
Running lexer and parser on our TOY language
Getting ready
How to do itā€¦
How it worksā€¦
See also
Defining IR code generation methods for each AST class
Getting ready
How to do itā€¦
How it worksā€¦
Generating IR code for expressions
How to do itā€¦
See also
Generating IR code for functions
How to do itā€¦
How it worksā€¦
See also
Adding IR optimization support
How to do itā€¦
See also
3. Extending the Frontend and Adding JIT Support
Introduction
Handling decision making paradigms ā€“ if/then/else constructs
Getting ready
How to do it...
How it worksā€¦
See also
Generating code for loops
Getting ready
How to do it...
How it works...
See also
Handling user-defined operators ā€“ binary operators
Getting ready
How to do it...
How it works...
See also
Handling user-defined operators ā€“ unary operators
Getting ready
How to do it...
How it works...
See also
Adding JIT support
How to do it...
How it worksā€¦
4. Preparing Optimizations
Introduction
Various levels of optimization
Getting ready...
How to do itā€¦
How it worksā€¦
See Also
Writing your own LLVM pass
Getting ready
How to do itā€¦
How it works
See also
Running your own pass with the opt tool
How to do itā€¦
How it worksā€¦
See also
Using another pass in a new pass
Getting ready
How to do itā€¦
How it worksā€¦
There's moreā€¦
Registering a pass with pass manager
Getting ready
How to do itā€¦
How it worksā€¦
See Also
Writing an analysis pass
Getting ready
How to do itā€¦
How it worksā€¦
Writing an alias analysis pass
Getting ready
How to do it...
How it worksā€¦
See also
Using other analysis passes
Getting readyā€¦
How to do itā€¦
How it worksā€¦
See also
5. Implementing Optimizations
Introduction
Writing a dead code elimination pass
Getting ready
How to do itā€¦
How it worksā€¦
See also
Writing an inlining transformation pass
Getting ready
How to do itā€¦
How it works...
Writing a pass for memory optimization
Getting ready
How to do itā€¦
How it worksā€¦
See also
Combining LLVM IR
Getting started
How to do itā€¦
How it worksā€¦
See also
Transforming and optimizing loops
Getting ready
How to do itā€¦
How it worksā€¦
Reassociating expressions
Getting Ready
How to do itā€¦
How it works ā€¦
Vectorizing IR
Getting ready
How to do it...
How it worksā€¦
See alsoā€¦
Other optimization passes
Getting readyā€¦
How to do itā€¦
How it worksā€¦
See also
6. Target-independent Code Generator
Introduction
The life of an LLVM IR instruction
C Code to LLVM IR
IR optimization
LLVM IR to SelectionDAG
SelectionDAG legalization
Conversion from target-independent DAG to machine DAG
Scheduling instructions
Register allocation
Code emission
Visualizing LLVM IR CFG using GraphViz
Getting ready
How to do itā€¦
See also
Describing targets using TableGen
Getting ready
How to do it
How it works
See also
Defining an instruction set
Getting ready
How to do itā€¦
How it worksā€¦
See also
A...

Table of contents