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