售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
LLVM Essentials
Table of Contents
LLVM Essentials
Credits
About the Authors
About the Reviewer
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
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
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
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
3. Advanced LLVM IR
Memory 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
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
5. Advanced IR Block Transformations
Loop processing
Scalar evolution
LLVM intrinsics
Vectorization
Summary
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
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜