LLVM Cookbook
eBook - ePub

LLVM Cookbook

Mayur Pandey, Suyog Sarda

Condividi libro
  1. 296 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

LLVM Cookbook

Mayur Pandey, Suyog Sarda

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
LLVM Cookbook è disponibile online in formato PDF/ePub?
Sì, puoi accedere a LLVM Cookbook di Mayur Pandey, Suyog Sarda in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatica e Linguaggi di programmazione. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

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

Indice dei contenuti