Annotation<span class='showMoreLessContentElement' style='display: none;'><p>Become familiar with the LLVM infrastructure and start using LLVM libraries to design a compilerAbout This Book Learn to use the LLVM libraries to emit intermediate representation (IR) from high-level language Build your
LLVM essentials : become familiar with the LLVM infrastructure and start using LLVM libraries to design a compiler
โ Scribed by Pandey, Mayur; Sarda, Suyog
- Publisher
- Packt Publishing
- Year
- 2015
- Tongue
- English
- Leaves
- 236
- Series
- Community experience distilled.
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
Annotation Read more...
โฆ Table of Contents
Cover
Copyright
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Table of Contents
Preface
Chapter 1: Playing with LLVM
Modular design and collection of libraries
Getting familiar with LLVM IR
LLVM tools and using them in the command line
Summary
Chapter 2: Building LLVM IR
Creating an LLVM module
Emitting a function in a module
Adding a block to a function
Emitting a global variable
Emitting a return statement
Emitting function arguments
Emitting a simple arithmetic statement in a basic block
Emitting if-else condition IR
Emitting LLVM IR for loop
Summary. Chapter 3: Advanced LLVM IRMemory access operations
Getting the address of an element
Reading from the memory
Writing into a memory location
Inserting a scalar into a vector
Extracting a scalar from a vector
Summary
Chapter 4: Basic IR Transformations
Opt Tool
Pass and Pass Manager
Using other Pass info in current Pass
AnalysisUsage::addRequired method
AnalysisUsage:addRequiredTransitive method
AnalysisUsage::addPreserved method
Instruction simplification example
Instruction Combining
Summary
Chapter 5: Advanced IR Block Transformations
Loop processing. Scalar evolutionLLVM intrinsics
Vectorization
Summary
Chapter 6: IR to Selection DAG phase
Converting IR to selectionDAG
Legalizing SelectionDAG
Optimizing SelectionDAG
Instruction Selection
Scheduling and emitting machine instructions
Register allocation
Code Emission
Summary
Chapter 7: Generating Code for Target Architecture
Sample backend
Defining registers and register sets
Defining the calling convention
Defining the instruction set
Implementing frame lowering
Lowering instructions
Printing an instruction
Summary
Index.
โฆ Subjects
Virtual computer systems;COMPUTERS / Operating Systems / Virtualization
๐ SIMILAR VOLUMES
LLVM is a bleeding edge compiler technology framework. Easily extendable and designed as a multitude of libraries, LLVM provides a smooth experience for compiler newcomers and reduces the steep learning curve often associated with compiler development. To start, this book will show you how to confi
<p><b>Learn how to build and use all parts of real-world compilers, including the frontend, optimization pipeline, and a new backend by leveraging the power of LLVM core libraries</b></p><h4>Key Features</h4><ul><li>Get to grips with effectively using LLVM libraries step-by-step </li><li>Understand
Learn how to build and use all parts of real-world compilers, including the frontend, optimization pipeline, and a new backend by leveraging the power of LLVM core libraries Key Features โข Get to grips with effectively using LLVM libraries step-by-step โข Understand LLVM compiler high-level desi
Learn how to build and use all parts of real-world compilers, including the frontend, optimization pipeline, and a new backend by leveraging the power of LLVM core libraries Key Features โข Get to grips with effectively using LLVM libraries step-by-step โข Understand LLVM compiler high-level desi
Learn how to build and use all parts of real-world compilers, including the frontend, optimization pipeline, and a new backend by leveraging the power of LLVM core libraries Key Features โข Get to grips with effectively using LLVM libraries step-by-step โข Understand LLVM compiler high-level desi