Daniel Dunbar | fbb8041 | 2012-04-19 16:31:37 +0000 | [diff] [blame] | 1 | Overview |
| 2 | ======== |
| 3 | |
| 4 | .. warning:: |
| 5 | |
| 6 | If you are using a released version of LLVM, see `the download page |
| 7 | <http://llvm.org/releases/>`_ to find your documentation. |
| 8 | |
| 9 | The LLVM compiler infrastructure supports a wide range of projects, from |
| 10 | industrial strength compilers to specialized JIT applications to small |
| 11 | research projects. |
| 12 | |
| 13 | Similarly, documentation is broken down into several high-level groupings |
Benjamin Kramer | bde9176 | 2012-06-02 10:20:22 +0000 | [diff] [blame] | 14 | targeted at different audiences: |
Daniel Dunbar | fbb8041 | 2012-04-19 16:31:37 +0000 | [diff] [blame] | 15 | |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 16 | LLVM Design & Overview |
| 17 | ====================== |
Daniel Dunbar | fbb8041 | 2012-04-19 16:31:37 +0000 | [diff] [blame] | 18 | |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 19 | Several introductory papers and presentations. |
Daniel Dunbar | fbb8041 | 2012-04-19 16:31:37 +0000 | [diff] [blame] | 20 | |
| 21 | .. toctree:: |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 22 | :hidden: |
Daniel Dunbar | fbb8041 | 2012-04-19 16:31:37 +0000 | [diff] [blame] | 23 | |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 24 | LangRef |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 25 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 26 | :doc:`LangRef` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 27 | Defines the LLVM intermediate representation. |
| 28 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 29 | `Introduction to the LLVM Compiler`__ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 30 | Presentation providing a users introduction to LLVM. |
| 31 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 32 | .. __: http://llvm.org/pubs/2008-10-04-ACAT-LLVM-Intro.html |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 33 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 34 | `Intro to LLVM`__ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 35 | Book chapter providing a compiler hacker's introduction to LLVM. |
| 36 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 37 | .. __: http://www.aosabook.org/en/llvm.html |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 38 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 39 | |
| 40 | `LLVM: A Compilation Framework for Lifelong Program Analysis & Transformation`__ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 41 | Design overview. |
| 42 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 43 | .. __: http://llvm.org/pubs/2004-01-30-CGO-LLVM.html |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 44 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 45 | `LLVM: An Infrastructure for Multi-Stage Optimization`__ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 46 | More details (quite old now). |
| 47 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 48 | .. __: http://llvm.org/pubs/2002-12-LattnerMSThesis.html |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 49 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 50 | `Publications mentioning LLVM <http://llvm.org/pubs>`_ |
| 51 | .. |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 52 | |
| 53 | User Guides |
| 54 | =========== |
| 55 | |
| 56 | For those new to the LLVM system. |
| 57 | |
| 58 | NOTE: If you are a user who is only interested in using LLVM-based |
| 59 | compilers, you should look into `Clang <http://clang.llvm.org>`_ or |
| 60 | `DragonEgg <http://dragonegg.llvm.org>`_ instead. The documentation here is |
| 61 | intended for users who have a need to work with the intermediate LLVM |
| 62 | representation. |
| 63 | |
| 64 | .. toctree:: |
| 65 | :hidden: |
| 66 | |
| 67 | CMake |
Chris Bieneman | 9debb98 | 2016-04-29 20:34:54 +0000 | [diff] [blame] | 68 | CMakePrimer |
Chris Bieneman | ebb1dd9 | 2016-03-18 21:57:51 +0000 | [diff] [blame] | 69 | AdvancedBuilds |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 70 | HowToBuildOnARM |
Renato Golin | d24899b | 2013-09-08 20:44:48 +0000 | [diff] [blame] | 71 | HowToCrossCompileLLVM |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 72 | CommandGuide/index |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 73 | GettingStarted |
| 74 | GettingStartedVS |
| 75 | FAQ |
| 76 | Lexicon |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 77 | HowToAddABuilder |
| 78 | yaml2obj |
| 79 | HowToSubmitABug |
| 80 | SphinxQuickstartTemplate |
| 81 | Phabricator |
| 82 | TestingGuide |
| 83 | tutorial/index |
| 84 | ReleaseNotes |
| 85 | Passes |
| 86 | YamlIO |
Sean Silva | 163b5c4 | 2013-03-30 15:32:50 +0000 | [diff] [blame] | 87 | GetElementPtr |
Philip Reames | f8bf9dd | 2015-02-27 23:14:50 +0000 | [diff] [blame] | 88 | Frontend/PerformanceTips |
Sean Silva | 3f93a61 | 2013-09-09 19:09:00 +0000 | [diff] [blame] | 89 | MCJITDesignAndImplementation |
Chandler Carruth | 3629343 | 2016-06-30 20:27:54 +0000 | [diff] [blame] | 90 | CodeOfConduct |
Jingyue Wu | 4f2a6cb | 2015-11-10 22:35:47 +0000 | [diff] [blame] | 91 | CompileCudaWithLLVM |
Chandler Carruth | 3629343 | 2016-06-30 20:27:54 +0000 | [diff] [blame] | 92 | ReportingGuide |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 93 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 94 | :doc:`GettingStarted` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 95 | Discusses how to get up and running quickly with the LLVM infrastructure. |
| 96 | Everything from unpacking and compilation of the distribution to execution |
| 97 | of some tools. |
| 98 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 99 | :doc:`CMake` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 100 | An addendum to the main Getting Started guide for those using the `CMake |
| 101 | build system <http://www.cmake.org>`_. |
| 102 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 103 | :doc:`HowToBuildOnARM` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 104 | Notes on building and testing LLVM/Clang on ARM. |
| 105 | |
Renato Golin | d24899b | 2013-09-08 20:44:48 +0000 | [diff] [blame] | 106 | :doc:`HowToCrossCompileLLVM` |
| 107 | Notes on cross-building and testing LLVM/Clang. |
| 108 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 109 | :doc:`GettingStartedVS` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 110 | An addendum to the main Getting Started guide for those using Visual Studio |
| 111 | on Windows. |
| 112 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 113 | :doc:`tutorial/index` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 114 | Tutorials about using LLVM. Includes a tutorial about making a custom |
| 115 | language with LLVM. |
| 116 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 117 | :doc:`LLVM Command Guide <CommandGuide/index>` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 118 | A reference manual for the LLVM command line utilities ("man" pages for LLVM |
| 119 | tools). |
| 120 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 121 | :doc:`Passes` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 122 | A list of optimizations and analyses implemented in LLVM. |
| 123 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 124 | :doc:`FAQ` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 125 | A list of common questions and problems and their solutions. |
| 126 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 127 | :doc:`Release notes for the current release <ReleaseNotes>` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 128 | This describes new features, known bugs, and other limitations. |
| 129 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 130 | :doc:`HowToSubmitABug` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 131 | Instructions for properly submitting information about any bugs you run into |
| 132 | in the LLVM system. |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 133 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 134 | :doc:`SphinxQuickstartTemplate` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 135 | A template + tutorial for writing new Sphinx documentation. It is meant |
| 136 | to be read in source form. |
| 137 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 138 | :doc:`LLVM Testing Infrastructure Guide <TestingGuide>` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 139 | A reference manual for using the LLVM testing infrastructure. |
| 140 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 141 | `How to build the C, C++, ObjC, and ObjC++ front end`__ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 142 | Instructions for building the clang front-end from source. |
| 143 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 144 | .. __: http://clang.llvm.org/get_started.html |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 145 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 146 | :doc:`Lexicon` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 147 | Definition of acronyms, terms and concepts used in LLVM. |
| 148 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 149 | :doc:`HowToAddABuilder` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 150 | Instructions for adding new builder to LLVM buildbot master. |
| 151 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 152 | :doc:`YamlIO` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 153 | A reference guide for using LLVM's YAML I/O library. |
| 154 | |
Sean Silva | 163b5c4 | 2013-03-30 15:32:50 +0000 | [diff] [blame] | 155 | :doc:`GetElementPtr` |
| 156 | Answers to some very frequent questions about LLVM's most frequently |
| 157 | misunderstood instruction. |
| 158 | |
Philip Reames | f8bf9dd | 2015-02-27 23:14:50 +0000 | [diff] [blame] | 159 | :doc:`Frontend/PerformanceTips` |
| 160 | A collection of tips for frontend authors on how to generate IR |
| 161 | which LLVM is able to effectively optimize. |
| 162 | |
| 163 | |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 164 | Programming Documentation |
| 165 | ========================= |
| 166 | |
| 167 | For developers of applications which use LLVM as a library. |
| 168 | |
| 169 | .. toctree:: |
| 170 | :hidden: |
| 171 | |
| 172 | Atomics |
| 173 | CodingStandards |
| 174 | CommandLine |
| 175 | CompilerWriterInfo |
| 176 | ExtendingLLVM |
| 177 | HowToSetUpLLVMStyleRTTI |
| 178 | ProgrammersManual |
Nico Rieck | 1da4529 | 2013-04-10 23:28:17 +0000 | [diff] [blame] | 179 | Extensions |
Kostya Serebryany | 35ce863 | 2015-03-30 23:05:30 +0000 | [diff] [blame] | 180 | LibFuzzer |
Kostya Serebryany | 9a293ca | 2016-06-07 23:13:54 +0000 | [diff] [blame] | 181 | ScudoHardenedAllocator |
Andrew Kaylor | 3aeda4f | 2016-08-26 23:11:48 +0000 | [diff] [blame] | 182 | OptBisect |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 183 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 184 | :doc:`LLVM Language Reference Manual <LangRef>` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 185 | Defines the LLVM intermediate representation and the assembly form of the |
| 186 | different nodes. |
| 187 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 188 | :doc:`Atomics` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 189 | Information about LLVM's concurrency model. |
| 190 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 191 | :doc:`ProgrammersManual` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 192 | Introduction to the general layout of the LLVM sourcebase, important classes |
| 193 | and APIs, and some tips & tricks. |
| 194 | |
Nico Rieck | 1da4529 | 2013-04-10 23:28:17 +0000 | [diff] [blame] | 195 | :doc:`Extensions` |
| 196 | LLVM-specific extensions to tools and formats LLVM seeks compatibility with. |
| 197 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 198 | :doc:`CommandLine` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 199 | Provides information on using the command line parsing library. |
| 200 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 201 | :doc:`CodingStandards` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 202 | Details the LLVM coding standards and provides useful information on writing |
| 203 | efficient C++ code. |
| 204 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 205 | :doc:`HowToSetUpLLVMStyleRTTI` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 206 | How to make ``isa<>``, ``dyn_cast<>``, etc. available for clients of your |
| 207 | class hierarchy. |
| 208 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 209 | :doc:`ExtendingLLVM` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 210 | Look here to see how to add instructions and intrinsics to LLVM. |
| 211 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 212 | `Doxygen generated documentation <http://llvm.org/doxygen/>`_ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 213 | (`classes <http://llvm.org/doxygen/inherits.html>`_) |
| 214 | (`tarball <http://llvm.org/doxygen/doxygen.tar.gz>`_) |
| 215 | |
Peter Collingbourne | 943d270 | 2015-01-13 18:49:42 +0000 | [diff] [blame] | 216 | `Documentation for Go bindings <http://godoc.org/llvm.org/llvm/bindings/go/llvm>`_ |
| 217 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 218 | `ViewVC Repository Browser <http://llvm.org/viewvc/>`_ |
| 219 | .. |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 220 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 221 | :doc:`CompilerWriterInfo` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 222 | A list of helpful links for compiler writers. |
| 223 | |
Kostya Serebryany | 35ce863 | 2015-03-30 23:05:30 +0000 | [diff] [blame] | 224 | :doc:`LibFuzzer` |
| 225 | A library for writing in-process guided fuzzers. |
| 226 | |
Kostya Serebryany | 9a293ca | 2016-06-07 23:13:54 +0000 | [diff] [blame] | 227 | :doc:`ScudoHardenedAllocator` |
| 228 | A library that implements a security-hardened `malloc()`. |
| 229 | |
Andrew Kaylor | 3aeda4f | 2016-08-26 23:11:48 +0000 | [diff] [blame] | 230 | :doc:`OptBisect` |
| 231 | A command line option for debugging optimization-induced failures. |
| 232 | |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 233 | Subsystem Documentation |
| 234 | ======================= |
| 235 | |
| 236 | For API clients and LLVM developers. |
| 237 | |
| 238 | .. toctree:: |
| 239 | :hidden: |
| 240 | |
| 241 | AliasAnalysis |
George Burgess IV | 3bbeb73 | 2016-08-17 00:17:29 +0000 | [diff] [blame] | 242 | MemorySSA |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 243 | BitCodeFormat |
Duncan P. N. Exon Smith | 6e40cec | 2014-04-11 23:21:07 +0000 | [diff] [blame] | 244 | BlockFrequencyTerminology |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 245 | BranchWeightMetadata |
| 246 | Bugpoint |
| 247 | CodeGenerator |
| 248 | ExceptionHandling |
| 249 | LinkTimeOptimization |
| 250 | SegmentedStacks |
| 251 | TableGenFundamentals |
Renato Golin | ca10564 | 2014-03-20 16:08:34 +0000 | [diff] [blame] | 252 | TableGen/index |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 253 | DebuggingJITedCode |
| 254 | GoldPlugin |
| 255 | MarkedUpDisassembly |
| 256 | SystemLibrary |
| 257 | SourceLevelDebugging |
| 258 | Vectorizers |
| 259 | WritingAnLLVMBackend |
| 260 | GarbageCollection |
| 261 | WritingAnLLVMPass |
Joe Abbey | ba3e901 | 2013-02-12 11:45:22 +0000 | [diff] [blame] | 262 | HowToUseAttributes |
Justin Holewinski | 45df882 | 2013-03-30 16:41:14 +0000 | [diff] [blame] | 263 | NVPTXUsage |
Tom Stellard | 45bb48e | 2015-06-13 03:28:10 +0000 | [diff] [blame] | 264 | AMDGPUUsage |
Andrew Trick | 5e029ce | 2013-12-24 02:57:25 +0000 | [diff] [blame] | 265 | StackMaps |
Sean Silva | 216f1ee | 2014-03-02 00:21:42 +0000 | [diff] [blame] | 266 | InAlloca |
James Molloy | 3f7878a | 2014-05-12 15:13:39 +0000 | [diff] [blame] | 267 | BigEndianNEON |
Alex Lorenz | 6a12833 | 2014-08-19 17:05:58 +0000 | [diff] [blame] | 268 | CoverageMappingFormat |
Matt Arsenault | 03f0e83 | 2014-12-03 18:35:11 +0000 | [diff] [blame] | 269 | Statepoints |
Stepan Dyatkovskiy | f0c3a34 | 2014-12-10 17:42:01 +0000 | [diff] [blame] | 270 | MergeFunctions |
Peter Collingbourne | 7efd750 | 2016-06-24 21:21:32 +0000 | [diff] [blame] | 271 | TypeMetadata |
Sanjoy Das | 5553bc8 | 2015-06-15 19:38:15 +0000 | [diff] [blame] | 272 | FaultMaps |
Alex Lorenz | 3d31177 | 2015-08-06 22:55:19 +0000 | [diff] [blame] | 273 | MIRLangRef |
David Majnemer | a653927 | 2016-07-23 04:05:08 +0000 | [diff] [blame] | 274 | Coroutines |
Ahmed Bougacha | 29d9da1 | 2016-11-04 17:57:34 +0000 | [diff] [blame] | 275 | GlobalISel |
Dean Michael Berris | f3da16b | 2016-11-09 00:24:58 +0000 | [diff] [blame] | 276 | XRay |
Zachary Turner | 218ce83 | 2016-11-10 19:24:21 +0000 | [diff] [blame] | 277 | PDB/index |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 278 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 279 | :doc:`WritingAnLLVMPass` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 280 | Information on how to write LLVM transformations and analyses. |
| 281 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 282 | :doc:`WritingAnLLVMBackend` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 283 | Information on how to write LLVM backends for machine targets. |
| 284 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 285 | :doc:`CodeGenerator` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 286 | The design and implementation of the LLVM code generator. Useful if you are |
| 287 | working on retargetting LLVM to a new architecture, designing a new codegen |
| 288 | pass, or enhancing existing components. |
| 289 | |
Alex Lorenz | 3d31177 | 2015-08-06 22:55:19 +0000 | [diff] [blame] | 290 | :doc:`Machine IR (MIR) Format Reference Manual <MIRLangRef>` |
| 291 | A reference manual for the MIR serialization format, which is used to test |
| 292 | LLVM's code generation passes. |
| 293 | |
Sean Silva | 0b4df9b | 2014-04-07 22:42:53 +0000 | [diff] [blame] | 294 | :doc:`TableGen <TableGen/index>` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 295 | Describes the TableGen tool, which is used heavily by the LLVM code |
| 296 | generator. |
| 297 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 298 | :doc:`AliasAnalysis` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 299 | Information on how to write a new alias analysis implementation or how to |
| 300 | use existing analyses. |
| 301 | |
George Burgess IV | 3bbeb73 | 2016-08-17 00:17:29 +0000 | [diff] [blame] | 302 | :doc:`MemorySSA` |
| 303 | Information about the MemorySSA utility in LLVM, as well as how to use it. |
| 304 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 305 | :doc:`GarbageCollection` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 306 | The interfaces source-language compilers should use for compiling GC'd |
| 307 | programs. |
| 308 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 309 | :doc:`Source Level Debugging with LLVM <SourceLevelDebugging>` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 310 | This document describes the design and philosophy behind the LLVM |
| 311 | source-level debugger. |
| 312 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 313 | :doc:`Vectorizers` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 314 | This document describes the current status of vectorization in LLVM. |
| 315 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 316 | :doc:`ExceptionHandling` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 317 | This document describes the design and implementation of exception handling |
| 318 | in LLVM. |
| 319 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 320 | :doc:`Bugpoint` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 321 | Automatic bug finder and test-case reducer description and usage |
| 322 | information. |
| 323 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 324 | :doc:`BitCodeFormat` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 325 | This describes the file format and encoding used for LLVM "bc" files. |
| 326 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 327 | :doc:`System Library <SystemLibrary>` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 328 | This document describes the LLVM System Library (``lib/System``) and |
| 329 | how to keep LLVM source code portable |
| 330 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 331 | :doc:`LinkTimeOptimization` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 332 | This document describes the interface between LLVM intermodular optimizer |
| 333 | and the linker and its design |
| 334 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 335 | :doc:`GoldPlugin` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 336 | How to build your programs with link-time optimization on Linux. |
| 337 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 338 | :doc:`DebuggingJITedCode` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 339 | How to debug JITed code with GDB. |
| 340 | |
Andrew Kaylor | 27299c3 | 2013-08-21 22:15:09 +0000 | [diff] [blame] | 341 | :doc:`MCJITDesignAndImplementation` |
| 342 | Describes the inner workings of MCJIT execution engine. |
| 343 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 344 | :doc:`BranchWeightMetadata` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 345 | Provides information about Branch Prediction Information. |
| 346 | |
Duncan P. N. Exon Smith | 6e40cec | 2014-04-11 23:21:07 +0000 | [diff] [blame] | 347 | :doc:`BlockFrequencyTerminology` |
| 348 | Provides information about terminology used in the ``BlockFrequencyInfo`` |
| 349 | analysis pass. |
| 350 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 351 | :doc:`SegmentedStacks` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 352 | This document describes segmented stacks and how they are used in LLVM. |
| 353 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 354 | :doc:`MarkedUpDisassembly` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 355 | This document describes the optional rich disassembly output syntax. |
| 356 | |
Joe Abbey | ba3e901 | 2013-02-12 11:45:22 +0000 | [diff] [blame] | 357 | :doc:`HowToUseAttributes` |
| 358 | Answers some questions about the new Attributes infrastructure. |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 359 | |
Justin Holewinski | 45df882 | 2013-03-30 16:41:14 +0000 | [diff] [blame] | 360 | :doc:`NVPTXUsage` |
| 361 | This document describes using the NVPTX back-end to compile GPU kernels. |
| 362 | |
Tom Stellard | 45bb48e | 2015-06-13 03:28:10 +0000 | [diff] [blame] | 363 | :doc:`AMDGPUUsage` |
| 364 | This document describes how to use the AMDGPU back-end. |
Tom Stellard | 9d7ddd5 | 2014-11-14 14:08:00 +0000 | [diff] [blame] | 365 | |
Andrew Trick | 5e029ce | 2013-12-24 02:57:25 +0000 | [diff] [blame] | 366 | :doc:`StackMaps` |
| 367 | LLVM support for mapping instruction addresses to the location of |
| 368 | values and allowing code to be patched. |
Justin Holewinski | 45df882 | 2013-03-30 16:41:14 +0000 | [diff] [blame] | 369 | |
James Molloy | 3f7878a | 2014-05-12 15:13:39 +0000 | [diff] [blame] | 370 | :doc:`BigEndianNEON` |
| 371 | LLVM's support for generating NEON instructions on big endian ARM targets is |
| 372 | somewhat nonintuitive. This document explains the implementation and rationale. |
| 373 | |
Alex Lorenz | 6a12833 | 2014-08-19 17:05:58 +0000 | [diff] [blame] | 374 | :doc:`CoverageMappingFormat` |
| 375 | This describes the format and encoding used for LLVM’s code coverage mapping. |
James Molloy | 3f7878a | 2014-05-12 15:13:39 +0000 | [diff] [blame] | 376 | |
Matt Arsenault | 03f0e83 | 2014-12-03 18:35:11 +0000 | [diff] [blame] | 377 | :doc:`Statepoints` |
| 378 | This describes a set of experimental extensions for garbage |
| 379 | collection support. |
| 380 | |
Stepan Dyatkovskiy | f0c3a34 | 2014-12-10 17:42:01 +0000 | [diff] [blame] | 381 | :doc:`MergeFunctions` |
| 382 | Describes functions merging optimization. |
| 383 | |
Sean Silva | b6472fe | 2015-02-04 20:51:19 +0000 | [diff] [blame] | 384 | :doc:`InAlloca` |
| 385 | Description of the ``inalloca`` argument attribute. |
| 386 | |
Sanjoy Das | 5553bc8 | 2015-06-15 19:38:15 +0000 | [diff] [blame] | 387 | :doc:`FaultMaps` |
| 388 | LLVM support for folding control flow into faulting machine instructions. |
| 389 | |
Jingyue Wu | 4f2a6cb | 2015-11-10 22:35:47 +0000 | [diff] [blame] | 390 | :doc:`CompileCudaWithLLVM` |
| 391 | LLVM support for CUDA. |
| 392 | |
David Majnemer | a653927 | 2016-07-23 04:05:08 +0000 | [diff] [blame] | 393 | :doc:`Coroutines` |
| 394 | LLVM support for coroutines. |
| 395 | |
Ahmed Bougacha | 29d9da1 | 2016-11-04 17:57:34 +0000 | [diff] [blame] | 396 | :doc:`GlobalISel` |
| 397 | This describes the prototype instruction selection replacement, GlobalISel. |
| 398 | |
Dean Michael Berris | f3da16b | 2016-11-09 00:24:58 +0000 | [diff] [blame] | 399 | :doc:`XRay` |
| 400 | High-level documentation of how to use XRay in LLVM. |
| 401 | |
Dean Michael Berris | 38daca6 | 2017-03-30 23:46:36 +0000 | [diff] [blame^] | 402 | :doc:`XRayExample` |
| 403 | An example of how to debug an application with XRay. |
| 404 | |
Zachary Turner | 218ce83 | 2016-11-10 19:24:21 +0000 | [diff] [blame] | 405 | :doc:`The Microsoft PDB File Format <PDB/index>` |
| 406 | A detailed description of the Microsoft PDB (Program Database) file format. |
| 407 | |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 408 | Development Process Documentation |
| 409 | ================================= |
| 410 | |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 411 | Information about LLVM's development process. |
| 412 | |
| 413 | .. toctree:: |
| 414 | :hidden: |
| 415 | |
Sean Silva | 9d205c8 | 2013-03-30 15:32:47 +0000 | [diff] [blame] | 416 | DeveloperPolicy |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 417 | Projects |
| 418 | LLVMBuild |
| 419 | HowToReleaseLLVM |
Sean Silva | bdb940f | 2013-01-28 21:28:10 +0000 | [diff] [blame] | 420 | Packaging |
Sean Silva | 3f93a61 | 2013-09-09 19:09:00 +0000 | [diff] [blame] | 421 | ReleaseProcess |
Adrian Prantl | adc41ca | 2014-10-03 20:17:32 +0000 | [diff] [blame] | 422 | Phabricator |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 423 | |
Sean Silva | 9d205c8 | 2013-03-30 15:32:47 +0000 | [diff] [blame] | 424 | :doc:`DeveloperPolicy` |
| 425 | The LLVM project's policy towards developers and their contributions. |
| 426 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 427 | :doc:`Projects` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 428 | How-to guide and templates for new projects that *use* the LLVM |
| 429 | infrastructure. The templates (directory organization, Makefiles, and test |
| 430 | tree) allow the project code to be located outside (or inside) the ``llvm/`` |
| 431 | tree, while using LLVM header files and libraries. |
| 432 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 433 | :doc:`LLVMBuild` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 434 | Describes the LLVMBuild organization and files used by LLVM to specify |
| 435 | component descriptions. |
| 436 | |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 437 | :doc:`HowToReleaseLLVM` |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 438 | This is a guide to preparing LLVM releases. Most developers can ignore it. |
| 439 | |
Renato Golin | c08f218 | 2013-05-28 10:32:55 +0000 | [diff] [blame] | 440 | :doc:`ReleaseProcess` |
Jyoti Allur | 223602d | 2014-09-26 06:59:15 +0000 | [diff] [blame] | 441 | This is a guide to validate a new release, during the release process. Most developers can ignore it. |
Renato Golin | c08f218 | 2013-05-28 10:32:55 +0000 | [diff] [blame] | 442 | |
Sean Silva | bdb940f | 2013-01-28 21:28:10 +0000 | [diff] [blame] | 443 | :doc:`Packaging` |
| 444 | Advice on packaging LLVM into a distribution. |
| 445 | |
Adrian Prantl | adc41ca | 2014-10-03 20:17:32 +0000 | [diff] [blame] | 446 | :doc:`Phabricator` |
| 447 | Describes how to use the Phabricator code review tool hosted on |
| 448 | http://reviews.llvm.org/ and its command line interface, Arcanist. |
| 449 | |
Sean Silva | 0129924 | 2013-03-30 15:32:51 +0000 | [diff] [blame] | 450 | Community |
| 451 | ========= |
| 452 | |
| 453 | LLVM has a thriving community of friendly and helpful developers. |
| 454 | The two primary communication mechanisms in the LLVM community are mailing |
| 455 | lists and IRC. |
| 456 | |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 457 | Mailing Lists |
Sean Silva | 0129924 | 2013-03-30 15:32:51 +0000 | [diff] [blame] | 458 | ------------- |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 459 | |
| 460 | If you can't find what you need in these docs, try consulting the mailing |
| 461 | lists. |
| 462 | |
Tanya Lattner | 0d28f80 | 2015-08-05 03:51:17 +0000 | [diff] [blame] | 463 | `Developer's List (llvm-dev)`__ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 464 | This list is for people who want to be included in technical discussions of |
| 465 | LLVM. People post to this list when they have questions about writing code |
| 466 | for or using the LLVM tools. It is relatively low volume. |
| 467 | |
Tanya Lattner | 0d28f80 | 2015-08-05 03:51:17 +0000 | [diff] [blame] | 468 | .. __: http://lists.llvm.org/mailman/listinfo/llvm-dev |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 469 | |
Sean Silva | ab4997d | 2013-03-30 15:33:01 +0000 | [diff] [blame] | 470 | `Commits Archive (llvm-commits)`__ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 471 | This list contains all commit messages that are made when LLVM developers |
Sean Silva | 2a74699 | 2013-03-30 15:33:02 +0000 | [diff] [blame] | 472 | commit code changes to the repository. It also serves as a forum for |
| 473 | patch review (i.e. send patches here). It is useful for those who want to |
| 474 | stay on the bleeding edge of LLVM development. This list is very high |
| 475 | volume. |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 476 | |
Tanya Lattner | 0d28f80 | 2015-08-05 03:51:17 +0000 | [diff] [blame] | 477 | .. __: http://lists.llvm.org/pipermail/llvm-commits/ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 478 | |
Tanya Lattner | 0d28f80 | 2015-08-05 03:51:17 +0000 | [diff] [blame] | 479 | `Bugs & Patches Archive (llvm-bugs)`__ |
Sean Silva | 2a74699 | 2013-03-30 15:33:02 +0000 | [diff] [blame] | 480 | This list gets emailed every time a bug is opened and closed. It is |
Tanya Lattner | 0d28f80 | 2015-08-05 03:51:17 +0000 | [diff] [blame] | 481 | higher volume than the LLVM-dev list. |
Sean Silva | 84b296c | 2013-03-30 15:32:54 +0000 | [diff] [blame] | 482 | |
Tanya Lattner | 0d28f80 | 2015-08-05 03:51:17 +0000 | [diff] [blame] | 483 | .. __: http://lists.llvm.org/pipermail/llvm-bugs/ |
Sean Silva | 84b296c | 2013-03-30 15:32:54 +0000 | [diff] [blame] | 484 | |
Sean Silva | ab4997d | 2013-03-30 15:33:01 +0000 | [diff] [blame] | 485 | `Test Results Archive (llvm-testresults)`__ |
Sean Silva | 12159ff | 2013-01-20 02:19:36 +0000 | [diff] [blame] | 486 | A message is automatically sent to this list by every active nightly tester |
| 487 | when it completes. As such, this list gets email several times each day, |
| 488 | making it a high volume list. |
| 489 | |
Tanya Lattner | 0d28f80 | 2015-08-05 03:51:17 +0000 | [diff] [blame] | 490 | .. __: http://lists.llvm.org/pipermail/llvm-testresults/ |
Sean Silva | 9d0eb94 | 2013-01-20 02:19:42 +0000 | [diff] [blame] | 491 | |
Sean Silva | ab4997d | 2013-03-30 15:33:01 +0000 | [diff] [blame] | 492 | `LLVM Announcements List (llvm-announce)`__ |
Sean Silva | 84b296c | 2013-03-30 15:32:54 +0000 | [diff] [blame] | 493 | This is a low volume list that provides important announcements regarding |
| 494 | LLVM. It gets email about once a month. |
| 495 | |
Tanya Lattner | 0d28f80 | 2015-08-05 03:51:17 +0000 | [diff] [blame] | 496 | .. __: http://lists.llvm.org/mailman/listinfo/llvm-announce |
Sean Silva | 84b296c | 2013-03-30 15:32:54 +0000 | [diff] [blame] | 497 | |
Sean Silva | 0129924 | 2013-03-30 15:32:51 +0000 | [diff] [blame] | 498 | IRC |
| 499 | --- |
| 500 | |
| 501 | Users and developers of the LLVM project (including subprojects such as Clang) |
| 502 | can be found in #llvm on `irc.oftc.net <irc://irc.oftc.net/llvm>`_. |
| 503 | |
| 504 | This channel has several bots. |
| 505 | |
| 506 | * Buildbot reporters |
| 507 | |
| 508 | * llvmbb - Bot for the main LLVM buildbot master. |
| 509 | http://lab.llvm.org:8011/console |
| 510 | * bb-chapuni - An individually run buildbot master. http://bb.pgr.jp/console |
| 511 | * smooshlab - Apple's internal buildbot master. |
| 512 | |
| 513 | * robot - Bugzilla linker. %bug <number> |
| 514 | |
| 515 | * clang-bot - A `geordi <http://www.eelis.net/geordi/>`_ instance running |
| 516 | near-trunk clang instead of gcc. |
| 517 | |
Renato Golin | e433cf7 | 2016-07-20 09:38:04 +0000 | [diff] [blame] | 518 | Community wide proposals |
| 519 | ------------------------ |
| 520 | |
| 521 | Proposals for massive changes in how the community behaves and how the work flow |
| 522 | can be better. |
| 523 | |
| 524 | .. toctree:: |
| 525 | :hidden: |
| 526 | |
| 527 | CodeOfConduct |
Mehdi Amini | 647deb8 | 2016-10-12 23:02:02 +0000 | [diff] [blame] | 528 | Proposals/GitHubMove |
Renato Golin | e433cf7 | 2016-07-20 09:38:04 +0000 | [diff] [blame] | 529 | |
| 530 | :doc:`CodeOfConduct` |
| 531 | Proposal to adopt a code of conduct on the LLVM social spaces (lists, events, |
| 532 | IRC, etc). |
| 533 | |
Mehdi Amini | 647deb8 | 2016-10-12 23:02:02 +0000 | [diff] [blame] | 534 | :doc:`Proposals/GitHubMove` |
Renato Golin | e433cf7 | 2016-07-20 09:38:04 +0000 | [diff] [blame] | 535 | Proposal to move from SVN/Git to GitHub. |
| 536 | |
Sean Silva | 0129924 | 2013-03-30 15:32:51 +0000 | [diff] [blame] | 537 | |
Daniel Dunbar | fbb8041 | 2012-04-19 16:31:37 +0000 | [diff] [blame] | 538 | Indices and tables |
| 539 | ================== |
| 540 | |
| 541 | * :ref:`genindex` |
| 542 | * :ref:`search` |