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