DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 1 | User Guides
|
| 2 | ===========
|
| 3 |
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 4 | NOTE: If you are a user who is only interested in using an LLVM-based compiler,
|
| 5 | you should look into `Clang <http://clang.llvm.org>`_ instead. The
|
| 6 | documentation here is intended for users who have a need to work with the
|
| 7 | intermediate LLVM representation.
|
| 8 |
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 9 | .. contents::
|
| 10 | :local:
|
| 11 |
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 12 | .. toctree::
|
| 13 | :hidden:
|
| 14 |
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 15 | AddingConstrainedIntrinsics
|
| 16 | AdvancedBuilds
|
| 17 | AliasAnalysis
|
| 18 | AMDGPUUsage
|
| 19 | Benchmarking
|
| 20 | BigEndianNEON
|
| 21 | BuildingADistribution
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 22 | CMake
|
| 23 | CMakePrimer
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 24 | CodeGenerator
|
| 25 | CodeOfConduct
|
| 26 | CommandLine
|
| 27 | CompileCudaWithLLVM
|
| 28 | CoverageMappingFormat
|
| 29 | DebuggingJITedCode
|
| 30 | Docker
|
| 31 | ExtendingLLVM
|
| 32 | GoldPlugin
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 33 | HowToBuildOnARM
|
| 34 | HowToBuildWithPGO
|
| 35 | HowToCrossCompileBuiltinsOnArm
|
| 36 | HowToCrossCompileLLVM
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 37 | LinkTimeOptimization
|
| 38 | LoopTerminology
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 39 | MarkdownQuickstartTemplate
|
DeForest Richards | edbb895 | 2019-10-09 21:09:09 +0000 | [diff] [blame^] | 40 | MemorySSA
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 41 | MergeFunctions
|
| 42 | MCJITDesignAndImplementation
|
| 43 | NVPTXUsage
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 44 | Phabricator
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 45 | Passes
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 46 | ReportingGuide
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 47 | Remarks
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 48 | SourceLevelDebugging
|
DeForest Richards | edbb895 | 2019-10-09 21:09:09 +0000 | [diff] [blame^] | 49 | StackSafetyAnalysis
|
| 50 | SupportLibrary
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 51 | TableGen/index
|
| 52 | TableGenFundamentals
|
| 53 | Vectorizers
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 54 | WritingAnLLVMPass
|
| 55 | WritingAnLLVMBackend
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 56 | yaml2obj
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 57 |
|
DeForest Richards | 2605f8c | 2019-09-27 19:12:00 +0000 | [diff] [blame] | 58 | Clang
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 59 | -----
|
DeForest Richards | 2605f8c | 2019-09-27 19:12:00 +0000 | [diff] [blame] | 60 |
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 61 | :doc:`HowToBuildOnARM`
|
| 62 | Notes on building and testing LLVM/Clang on ARM.
|
| 63 |
|
| 64 | :doc:`HowToBuildWithPGO`
|
| 65 | Notes on building LLVM/Clang with PGO.
|
| 66 |
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 67 | :doc:`HowToCrossCompileLLVM`
|
| 68 | Notes on cross-building and testing LLVM/Clang.
|
| 69 |
|
DeForest Richards | 2605f8c | 2019-09-27 19:12:00 +0000 | [diff] [blame] | 70 | `How to build the C, C++, ObjC, and ObjC++ front end`__
|
| 71 | Instructions for building the clang front-end from source.
|
| 72 |
|
| 73 | .. __: http://clang.llvm.org/get_started.html
|
| 74 |
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 75 | :doc:`CoverageMappingFormat`
|
| 76 | This describes the format and encoding used for LLVM’s code coverage mapping.
|
| 77 |
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 78 | LLVM Builds and Distributions
|
| 79 | -----------------------------
|
| 80 |
|
| 81 | :doc:`BuildingADistribution`
|
| 82 | A best-practices guide for using LLVM's CMake build system to package and
|
| 83 | distribute LLVM-based tools.
|
| 84 |
|
| 85 | :doc:`CMake`
|
| 86 | An addendum to the main Getting Started guide for those using the `CMake
|
| 87 | build system <http://www.cmake.org>`_.
|
DeForest Richards | 2605f8c | 2019-09-27 19:12:00 +0000 | [diff] [blame] | 88 |
|
| 89 | :doc:`Docker`
|
| 90 | A reference for using Dockerfiles provided with LLVM.
|
| 91 |
|
DeForest Richards | edbb895 | 2019-10-09 21:09:09 +0000 | [diff] [blame^] | 92 | :doc:`Support Library <SupportLibrary>`
|
| 93 | This document describes the LLVM Support Library (``lib/Support``) and
|
| 94 | how to keep LLVM source code portable
|
| 95 |
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 96 | Optimizations
|
| 97 | -------------
|
DeForest Richards | 2605f8c | 2019-09-27 19:12:00 +0000 | [diff] [blame] | 98 |
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 99 | :doc:`WritingAnLLVMPass`
|
| 100 | Information on how to write LLVM transformations and analyses.
|
DeForest Richards | 2605f8c | 2019-09-27 19:12:00 +0000 | [diff] [blame] | 101 |
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 102 | :doc:`Passes`
|
| 103 | A list of optimizations and analyses implemented in LLVM.
|
| 104 |
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 105 | :doc:`StackSafetyAnalysis`
|
| 106 | This document describes the design of the stack safety analysis of local
|
| 107 | variables.
|
| 108 |
|
| 109 | :doc:`MergeFunctions`
|
| 110 | Describes functions merging optimization.
|
| 111 |
|
| 112 | :doc:`AliasAnalysis`
|
| 113 | Information on how to write a new alias analysis implementation or how to
|
| 114 | use existing analyses.
|
| 115 |
|
DeForest Richards | edbb895 | 2019-10-09 21:09:09 +0000 | [diff] [blame^] | 116 | :doc:`MemorySSA`
|
| 117 | Information about the MemorySSA utility in LLVM, as well as how to use it.
|
| 118 |
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 119 | :doc:`LoopTerminology`
|
| 120 | A document describing Loops and associated terms as used in LLVM.
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 121 |
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 122 | :doc:`Vectorizers`
|
| 123 | This document describes the current status of vectorization in LLVM.
|
| 124 |
|
| 125 | :doc:`LinkTimeOptimization`
|
| 126 | This document describes the interface between LLVM intermodular optimizer
|
| 127 | and the linker and its design
|
| 128 |
|
| 129 | :doc:`GoldPlugin`
|
| 130 | How to build your programs with link-time optimization on Linux.
|
| 131 |
|
DeForest Richards | e3e6624 | 2019-09-05 17:30:52 +0000 | [diff] [blame] | 132 | :doc:`Remarks`
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 133 | A reference on the implementation of remarks in LLVM.
|
| 134 |
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 135 | :doc:`Source Level Debugging with LLVM <SourceLevelDebugging>`
|
| 136 | This document describes the design and philosophy behind the LLVM
|
| 137 | source-level debugger.
|
| 138 |
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 139 | Code Generation
|
| 140 | ---------------
|
| 141 |
|
| 142 | :doc:`WritingAnLLVMBackend`
|
| 143 | Information on how to write LLVM backends for machine targets.
|
| 144 |
|
| 145 | :doc:`CodeGenerator`
|
| 146 | The design and implementation of the LLVM code generator. Useful if you are
|
| 147 | working on retargetting LLVM to a new architecture, designing a new codegen
|
| 148 | pass, or enhancing existing components.
|
| 149 |
|
| 150 | :doc:`TableGen <TableGen/index>`
|
| 151 | Describes the TableGen tool, which is used heavily by the LLVM code
|
| 152 | generator.
|
| 153 |
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 154 | ===
|
| 155 | JIT
|
| 156 | ===
|
| 157 |
|
| 158 | :doc:`MCJITDesignAndImplementation`
|
| 159 | Describes the inner workings of MCJIT execution engine.
|
| 160 |
|
| 161 | :doc:`DebuggingJITedCode`
|
| 162 | How to debug JITed code with GDB.
|
| 163 |
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 164 | Additional Topics
|
| 165 | -----------------
|
| 166 |
|
DeForest Richards | de0e3aa | 2019-10-06 16:10:11 +0000 | [diff] [blame] | 167 | :doc:`CommandLine`
|
| 168 | Provides information on using the command line parsing library.
|
| 169 |
|
| 170 | :doc:`ExtendingLLVM`
|
| 171 | Look here to see how to add instructions and intrinsics to LLVM.
|
| 172 |
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 173 | :doc:`AddingConstrainedIntrinsics`
|
| 174 | Gives the steps necessary when adding a new constrained math intrinsic
|
| 175 | to LLVM.
|
| 176 |
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 177 | :doc:`HowToCrossCompileBuiltinsOnArm`
|
| 178 | Notes on cross-building and testing the compiler-rt builtins for Arm.
|
| 179 |
|
DeForest Richards | 38d16c1 | 2019-10-06 22:49:22 +0000 | [diff] [blame] | 180 | :doc:`BigEndianNEON`
|
| 181 | LLVM's support for generating NEON instructions on big endian ARM targets is
|
| 182 | somewhat nonintuitive. This document explains the implementation and rationale.
|
| 183 |
|
| 184 | :doc:`CompileCudaWithLLVM`
|
| 185 | LLVM support for CUDA.
|
| 186 |
|
DeForest Richards | 6d19651 | 2019-10-06 15:36:37 +0000 | [diff] [blame] | 187 | :doc:`NVPTXUsage`
|
| 188 | This document describes using the NVPTX backend to compile GPU kernels.
|
| 189 |
|
| 190 | :doc:`AMDGPUUsage`
|
| 191 | This document describes using the AMDGPU backend to compile GPU kernels. |