LLVM Cookbook
eBook - ePub

LLVM Cookbook

Mayur Pandey, Suyog Sarda

Compartir libro
  1. 296 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

LLVM Cookbook

Mayur Pandey, Suyog Sarda

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es LLVM Cookbook un PDF/ePUB en línea?
Sí, puedes acceder a LLVM Cookbook de Mayur Pandey, Suyog Sarda en formato PDF o ePUB, así como a otros libros populares de Informatica y Linguaggi di programmazione. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
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...

Índice