blob: 29f2bd8955a7279b15a6de048d124a699e7c7349 [file] [log] [blame]
Daniel Dunbarfbb80412012-04-19 16:31:37 +00001Overview
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
9The LLVM compiler infrastructure supports a wide range of projects, from
10industrial strength compilers to specialized JIT applications to small
11research projects.
12
13Similarly, documentation is broken down into several high-level groupings
Benjamin Kramerbde91762012-06-02 10:20:22 +000014targeted at different audiences:
Daniel Dunbarfbb80412012-04-19 16:31:37 +000015
Sean Silva12159ff2013-01-20 02:19:36 +000016LLVM Design & Overview
17======================
Daniel Dunbarfbb80412012-04-19 16:31:37 +000018
Sean Silva12159ff2013-01-20 02:19:36 +000019Several introductory papers and presentations.
Daniel Dunbarfbb80412012-04-19 16:31:37 +000020
21.. toctree::
Sean Silva12159ff2013-01-20 02:19:36 +000022 :hidden:
Daniel Dunbarfbb80412012-04-19 16:31:37 +000023
Sean Silva12159ff2013-01-20 02:19:36 +000024 LangRef
Sean Silva12159ff2013-01-20 02:19:36 +000025
Sean Silva9d0eb942013-01-20 02:19:42 +000026:doc:`LangRef`
Sean Silva12159ff2013-01-20 02:19:36 +000027 Defines the LLVM intermediate representation.
28
Sean Silva9d0eb942013-01-20 02:19:42 +000029`Introduction to the LLVM Compiler`__
Sean Silva12159ff2013-01-20 02:19:36 +000030 Presentation providing a users introduction to LLVM.
31
Sean Silva9d0eb942013-01-20 02:19:42 +000032 .. __: http://llvm.org/pubs/2008-10-04-ACAT-LLVM-Intro.html
Sean Silva12159ff2013-01-20 02:19:36 +000033
Sean Silva9d0eb942013-01-20 02:19:42 +000034`Intro to LLVM`__
Sean Silva12159ff2013-01-20 02:19:36 +000035 Book chapter providing a compiler hacker's introduction to LLVM.
36
Sean Silva9d0eb942013-01-20 02:19:42 +000037 .. __: http://www.aosabook.org/en/llvm.html
Sean Silva12159ff2013-01-20 02:19:36 +000038
Sean Silva9d0eb942013-01-20 02:19:42 +000039
40`LLVM: A Compilation Framework for Lifelong Program Analysis & Transformation`__
Sean Silva12159ff2013-01-20 02:19:36 +000041 Design overview.
42
Sean Silva9d0eb942013-01-20 02:19:42 +000043 .. __: http://llvm.org/pubs/2004-01-30-CGO-LLVM.html
Sean Silva12159ff2013-01-20 02:19:36 +000044
Sean Silva9d0eb942013-01-20 02:19:42 +000045`LLVM: An Infrastructure for Multi-Stage Optimization`__
Sean Silva12159ff2013-01-20 02:19:36 +000046 More details (quite old now).
47
Sean Silva9d0eb942013-01-20 02:19:42 +000048 .. __: http://llvm.org/pubs/2002-12-LattnerMSThesis.html
Sean Silva12159ff2013-01-20 02:19:36 +000049
Sean Silva9d0eb942013-01-20 02:19:42 +000050`Publications mentioning LLVM <http://llvm.org/pubs>`_
51 ..
Sean Silva12159ff2013-01-20 02:19:36 +000052
53User Guides
54===========
55
56For those new to the LLVM system.
57
58NOTE: If you are a user who is only interested in using LLVM-based
59compilers, you should look into `Clang <http://clang.llvm.org>`_ or
60`DragonEgg <http://dragonegg.llvm.org>`_ instead. The documentation here is
61intended for users who have a need to work with the intermediate LLVM
62representation.
63
64.. toctree::
65 :hidden:
66
67 CMake
Chris Bieneman9debb982016-04-29 20:34:54 +000068 CMakePrimer
Chris Bienemanebb1dd92016-03-18 21:57:51 +000069 AdvancedBuilds
Sean Silva12159ff2013-01-20 02:19:36 +000070 HowToBuildOnARM
Renato Golind24899b2013-09-08 20:44:48 +000071 HowToCrossCompileLLVM
Sean Silva12159ff2013-01-20 02:19:36 +000072 CommandGuide/index
Sean Silva12159ff2013-01-20 02:19:36 +000073 GettingStarted
74 GettingStartedVS
75 FAQ
76 Lexicon
Sean Silva12159ff2013-01-20 02:19:36 +000077 HowToAddABuilder
78 yaml2obj
79 HowToSubmitABug
80 SphinxQuickstartTemplate
81 Phabricator
82 TestingGuide
83 tutorial/index
84 ReleaseNotes
85 Passes
86 YamlIO
Sean Silva163b5c42013-03-30 15:32:50 +000087 GetElementPtr
Philip Reamesf8bf9dd2015-02-27 23:14:50 +000088 Frontend/PerformanceTips
Sean Silva3f93a612013-09-09 19:09:00 +000089 MCJITDesignAndImplementation
Chandler Carruth36293432016-06-30 20:27:54 +000090 CodeOfConduct
Jingyue Wu4f2a6cb2015-11-10 22:35:47 +000091 CompileCudaWithLLVM
Chandler Carruth36293432016-06-30 20:27:54 +000092 ReportingGuide
Sean Silva12159ff2013-01-20 02:19:36 +000093
Sean Silva9d0eb942013-01-20 02:19:42 +000094:doc:`GettingStarted`
Sean Silva12159ff2013-01-20 02:19:36 +000095 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 Silva9d0eb942013-01-20 02:19:42 +000099:doc:`CMake`
Sean Silva12159ff2013-01-20 02:19:36 +0000100 An addendum to the main Getting Started guide for those using the `CMake
101 build system <http://www.cmake.org>`_.
102
Sean Silva9d0eb942013-01-20 02:19:42 +0000103:doc:`HowToBuildOnARM`
Sean Silva12159ff2013-01-20 02:19:36 +0000104 Notes on building and testing LLVM/Clang on ARM.
105
Renato Golind24899b2013-09-08 20:44:48 +0000106:doc:`HowToCrossCompileLLVM`
107 Notes on cross-building and testing LLVM/Clang.
108
Sean Silva9d0eb942013-01-20 02:19:42 +0000109:doc:`GettingStartedVS`
Sean Silva12159ff2013-01-20 02:19:36 +0000110 An addendum to the main Getting Started guide for those using Visual Studio
111 on Windows.
112
Sean Silva9d0eb942013-01-20 02:19:42 +0000113:doc:`tutorial/index`
Sean Silva12159ff2013-01-20 02:19:36 +0000114 Tutorials about using LLVM. Includes a tutorial about making a custom
115 language with LLVM.
116
Sean Silva9d0eb942013-01-20 02:19:42 +0000117:doc:`LLVM Command Guide <CommandGuide/index>`
Sean Silva12159ff2013-01-20 02:19:36 +0000118 A reference manual for the LLVM command line utilities ("man" pages for LLVM
119 tools).
120
Sean Silva9d0eb942013-01-20 02:19:42 +0000121:doc:`Passes`
Sean Silva12159ff2013-01-20 02:19:36 +0000122 A list of optimizations and analyses implemented in LLVM.
123
Sean Silva9d0eb942013-01-20 02:19:42 +0000124:doc:`FAQ`
Sean Silva12159ff2013-01-20 02:19:36 +0000125 A list of common questions and problems and their solutions.
126
Sean Silva9d0eb942013-01-20 02:19:42 +0000127:doc:`Release notes for the current release <ReleaseNotes>`
Sean Silva12159ff2013-01-20 02:19:36 +0000128 This describes new features, known bugs, and other limitations.
129
Sean Silva9d0eb942013-01-20 02:19:42 +0000130:doc:`HowToSubmitABug`
Sean Silva12159ff2013-01-20 02:19:36 +0000131 Instructions for properly submitting information about any bugs you run into
132 in the LLVM system.
Sean Silva12159ff2013-01-20 02:19:36 +0000133
Sean Silva9d0eb942013-01-20 02:19:42 +0000134:doc:`SphinxQuickstartTemplate`
Sean Silva12159ff2013-01-20 02:19:36 +0000135 A template + tutorial for writing new Sphinx documentation. It is meant
136 to be read in source form.
137
Sean Silva9d0eb942013-01-20 02:19:42 +0000138:doc:`LLVM Testing Infrastructure Guide <TestingGuide>`
Sean Silva12159ff2013-01-20 02:19:36 +0000139 A reference manual for using the LLVM testing infrastructure.
140
Sean Silva9d0eb942013-01-20 02:19:42 +0000141`How to build the C, C++, ObjC, and ObjC++ front end`__
Sean Silva12159ff2013-01-20 02:19:36 +0000142 Instructions for building the clang front-end from source.
143
Sean Silva9d0eb942013-01-20 02:19:42 +0000144 .. __: http://clang.llvm.org/get_started.html
Sean Silva12159ff2013-01-20 02:19:36 +0000145
Sean Silva9d0eb942013-01-20 02:19:42 +0000146:doc:`Lexicon`
Sean Silva12159ff2013-01-20 02:19:36 +0000147 Definition of acronyms, terms and concepts used in LLVM.
148
Sean Silva9d0eb942013-01-20 02:19:42 +0000149:doc:`HowToAddABuilder`
Sean Silva12159ff2013-01-20 02:19:36 +0000150 Instructions for adding new builder to LLVM buildbot master.
151
Sean Silva9d0eb942013-01-20 02:19:42 +0000152:doc:`YamlIO`
Sean Silva12159ff2013-01-20 02:19:36 +0000153 A reference guide for using LLVM's YAML I/O library.
154
Sean Silva163b5c42013-03-30 15:32:50 +0000155:doc:`GetElementPtr`
156 Answers to some very frequent questions about LLVM's most frequently
157 misunderstood instruction.
158
Philip Reamesf8bf9dd2015-02-27 23:14:50 +0000159: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 Silva12159ff2013-01-20 02:19:36 +0000164Programming Documentation
165=========================
166
167For 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 Rieck1da45292013-04-10 23:28:17 +0000179 Extensions
Kostya Serebryany35ce8632015-03-30 23:05:30 +0000180 LibFuzzer
Kostya Serebryany9a293ca2016-06-07 23:13:54 +0000181 ScudoHardenedAllocator
Andrew Kaylor3aeda4f2016-08-26 23:11:48 +0000182 OptBisect
Sean Silva12159ff2013-01-20 02:19:36 +0000183
Sean Silva9d0eb942013-01-20 02:19:42 +0000184:doc:`LLVM Language Reference Manual <LangRef>`
Sean Silva12159ff2013-01-20 02:19:36 +0000185 Defines the LLVM intermediate representation and the assembly form of the
186 different nodes.
187
Sean Silva9d0eb942013-01-20 02:19:42 +0000188:doc:`Atomics`
Sean Silva12159ff2013-01-20 02:19:36 +0000189 Information about LLVM's concurrency model.
190
Sean Silva9d0eb942013-01-20 02:19:42 +0000191:doc:`ProgrammersManual`
Sean Silva12159ff2013-01-20 02:19:36 +0000192 Introduction to the general layout of the LLVM sourcebase, important classes
193 and APIs, and some tips & tricks.
194
Nico Rieck1da45292013-04-10 23:28:17 +0000195:doc:`Extensions`
196 LLVM-specific extensions to tools and formats LLVM seeks compatibility with.
197
Sean Silva9d0eb942013-01-20 02:19:42 +0000198:doc:`CommandLine`
Sean Silva12159ff2013-01-20 02:19:36 +0000199 Provides information on using the command line parsing library.
200
Sean Silva9d0eb942013-01-20 02:19:42 +0000201:doc:`CodingStandards`
Sean Silva12159ff2013-01-20 02:19:36 +0000202 Details the LLVM coding standards and provides useful information on writing
203 efficient C++ code.
204
Sean Silva9d0eb942013-01-20 02:19:42 +0000205:doc:`HowToSetUpLLVMStyleRTTI`
Sean Silva12159ff2013-01-20 02:19:36 +0000206 How to make ``isa<>``, ``dyn_cast<>``, etc. available for clients of your
207 class hierarchy.
208
Sean Silva9d0eb942013-01-20 02:19:42 +0000209:doc:`ExtendingLLVM`
Sean Silva12159ff2013-01-20 02:19:36 +0000210 Look here to see how to add instructions and intrinsics to LLVM.
211
Sean Silva9d0eb942013-01-20 02:19:42 +0000212`Doxygen generated documentation <http://llvm.org/doxygen/>`_
Sean Silva12159ff2013-01-20 02:19:36 +0000213 (`classes <http://llvm.org/doxygen/inherits.html>`_)
214 (`tarball <http://llvm.org/doxygen/doxygen.tar.gz>`_)
215
Peter Collingbourne943d2702015-01-13 18:49:42 +0000216`Documentation for Go bindings <http://godoc.org/llvm.org/llvm/bindings/go/llvm>`_
217
Sean Silva9d0eb942013-01-20 02:19:42 +0000218`ViewVC Repository Browser <http://llvm.org/viewvc/>`_
219 ..
Sean Silva12159ff2013-01-20 02:19:36 +0000220
Sean Silva9d0eb942013-01-20 02:19:42 +0000221:doc:`CompilerWriterInfo`
Sean Silva12159ff2013-01-20 02:19:36 +0000222 A list of helpful links for compiler writers.
223
Kostya Serebryany35ce8632015-03-30 23:05:30 +0000224:doc:`LibFuzzer`
225 A library for writing in-process guided fuzzers.
226
Kostya Serebryany9a293ca2016-06-07 23:13:54 +0000227:doc:`ScudoHardenedAllocator`
228 A library that implements a security-hardened `malloc()`.
229
Andrew Kaylor3aeda4f2016-08-26 23:11:48 +0000230:doc:`OptBisect`
231 A command line option for debugging optimization-induced failures.
232
Sean Silva12159ff2013-01-20 02:19:36 +0000233Subsystem Documentation
234=======================
235
236For API clients and LLVM developers.
237
238.. toctree::
239 :hidden:
240
241 AliasAnalysis
George Burgess IV3bbeb732016-08-17 00:17:29 +0000242 MemorySSA
Sean Silva12159ff2013-01-20 02:19:36 +0000243 BitCodeFormat
Duncan P. N. Exon Smith6e40cec2014-04-11 23:21:07 +0000244 BlockFrequencyTerminology
Sean Silva12159ff2013-01-20 02:19:36 +0000245 BranchWeightMetadata
246 Bugpoint
247 CodeGenerator
248 ExceptionHandling
249 LinkTimeOptimization
250 SegmentedStacks
251 TableGenFundamentals
Renato Golinca105642014-03-20 16:08:34 +0000252 TableGen/index
Sean Silva12159ff2013-01-20 02:19:36 +0000253 DebuggingJITedCode
254 GoldPlugin
255 MarkedUpDisassembly
256 SystemLibrary
257 SourceLevelDebugging
258 Vectorizers
259 WritingAnLLVMBackend
260 GarbageCollection
261 WritingAnLLVMPass
Joe Abbeyba3e9012013-02-12 11:45:22 +0000262 HowToUseAttributes
Justin Holewinski45df8822013-03-30 16:41:14 +0000263 NVPTXUsage
Tom Stellard45bb48e2015-06-13 03:28:10 +0000264 AMDGPUUsage
Andrew Trick5e029ce2013-12-24 02:57:25 +0000265 StackMaps
Sean Silva216f1ee2014-03-02 00:21:42 +0000266 InAlloca
James Molloy3f7878a2014-05-12 15:13:39 +0000267 BigEndianNEON
Alex Lorenz6a128332014-08-19 17:05:58 +0000268 CoverageMappingFormat
Matt Arsenault03f0e832014-12-03 18:35:11 +0000269 Statepoints
Stepan Dyatkovskiyf0c3a342014-12-10 17:42:01 +0000270 MergeFunctions
Peter Collingbourne7efd7502016-06-24 21:21:32 +0000271 TypeMetadata
Sanjoy Das5553bc82015-06-15 19:38:15 +0000272 FaultMaps
Alex Lorenz3d311772015-08-06 22:55:19 +0000273 MIRLangRef
David Majnemera6539272016-07-23 04:05:08 +0000274 Coroutines
Ahmed Bougacha29d9da12016-11-04 17:57:34 +0000275 GlobalISel
Sean Silva12159ff2013-01-20 02:19:36 +0000276
Sean Silva9d0eb942013-01-20 02:19:42 +0000277:doc:`WritingAnLLVMPass`
Sean Silva12159ff2013-01-20 02:19:36 +0000278 Information on how to write LLVM transformations and analyses.
279
Sean Silva9d0eb942013-01-20 02:19:42 +0000280:doc:`WritingAnLLVMBackend`
Sean Silva12159ff2013-01-20 02:19:36 +0000281 Information on how to write LLVM backends for machine targets.
282
Sean Silva9d0eb942013-01-20 02:19:42 +0000283:doc:`CodeGenerator`
Sean Silva12159ff2013-01-20 02:19:36 +0000284 The design and implementation of the LLVM code generator. Useful if you are
285 working on retargetting LLVM to a new architecture, designing a new codegen
286 pass, or enhancing existing components.
287
Alex Lorenz3d311772015-08-06 22:55:19 +0000288:doc:`Machine IR (MIR) Format Reference Manual <MIRLangRef>`
289 A reference manual for the MIR serialization format, which is used to test
290 LLVM's code generation passes.
291
Sean Silva0b4df9b2014-04-07 22:42:53 +0000292:doc:`TableGen <TableGen/index>`
Sean Silva12159ff2013-01-20 02:19:36 +0000293 Describes the TableGen tool, which is used heavily by the LLVM code
294 generator.
295
Sean Silva9d0eb942013-01-20 02:19:42 +0000296:doc:`AliasAnalysis`
Sean Silva12159ff2013-01-20 02:19:36 +0000297 Information on how to write a new alias analysis implementation or how to
298 use existing analyses.
299
George Burgess IV3bbeb732016-08-17 00:17:29 +0000300:doc:`MemorySSA`
301 Information about the MemorySSA utility in LLVM, as well as how to use it.
302
Sean Silva9d0eb942013-01-20 02:19:42 +0000303:doc:`GarbageCollection`
Sean Silva12159ff2013-01-20 02:19:36 +0000304 The interfaces source-language compilers should use for compiling GC'd
305 programs.
306
Sean Silva9d0eb942013-01-20 02:19:42 +0000307:doc:`Source Level Debugging with LLVM <SourceLevelDebugging>`
Sean Silva12159ff2013-01-20 02:19:36 +0000308 This document describes the design and philosophy behind the LLVM
309 source-level debugger.
310
Sean Silva9d0eb942013-01-20 02:19:42 +0000311:doc:`Vectorizers`
Sean Silva12159ff2013-01-20 02:19:36 +0000312 This document describes the current status of vectorization in LLVM.
313
Sean Silva9d0eb942013-01-20 02:19:42 +0000314:doc:`ExceptionHandling`
Sean Silva12159ff2013-01-20 02:19:36 +0000315 This document describes the design and implementation of exception handling
316 in LLVM.
317
Sean Silva9d0eb942013-01-20 02:19:42 +0000318:doc:`Bugpoint`
Sean Silva12159ff2013-01-20 02:19:36 +0000319 Automatic bug finder and test-case reducer description and usage
320 information.
321
Sean Silva9d0eb942013-01-20 02:19:42 +0000322:doc:`BitCodeFormat`
Sean Silva12159ff2013-01-20 02:19:36 +0000323 This describes the file format and encoding used for LLVM "bc" files.
324
Sean Silva9d0eb942013-01-20 02:19:42 +0000325:doc:`System Library <SystemLibrary>`
Sean Silva12159ff2013-01-20 02:19:36 +0000326 This document describes the LLVM System Library (``lib/System``) and
327 how to keep LLVM source code portable
328
Sean Silva9d0eb942013-01-20 02:19:42 +0000329:doc:`LinkTimeOptimization`
Sean Silva12159ff2013-01-20 02:19:36 +0000330 This document describes the interface between LLVM intermodular optimizer
331 and the linker and its design
332
Sean Silva9d0eb942013-01-20 02:19:42 +0000333:doc:`GoldPlugin`
Sean Silva12159ff2013-01-20 02:19:36 +0000334 How to build your programs with link-time optimization on Linux.
335
Sean Silva9d0eb942013-01-20 02:19:42 +0000336:doc:`DebuggingJITedCode`
Sean Silva12159ff2013-01-20 02:19:36 +0000337 How to debug JITed code with GDB.
338
Andrew Kaylor27299c32013-08-21 22:15:09 +0000339:doc:`MCJITDesignAndImplementation`
340 Describes the inner workings of MCJIT execution engine.
341
Sean Silva9d0eb942013-01-20 02:19:42 +0000342:doc:`BranchWeightMetadata`
Sean Silva12159ff2013-01-20 02:19:36 +0000343 Provides information about Branch Prediction Information.
344
Duncan P. N. Exon Smith6e40cec2014-04-11 23:21:07 +0000345:doc:`BlockFrequencyTerminology`
346 Provides information about terminology used in the ``BlockFrequencyInfo``
347 analysis pass.
348
Sean Silva9d0eb942013-01-20 02:19:42 +0000349:doc:`SegmentedStacks`
Sean Silva12159ff2013-01-20 02:19:36 +0000350 This document describes segmented stacks and how they are used in LLVM.
351
Sean Silva9d0eb942013-01-20 02:19:42 +0000352:doc:`MarkedUpDisassembly`
Sean Silva12159ff2013-01-20 02:19:36 +0000353 This document describes the optional rich disassembly output syntax.
354
Joe Abbeyba3e9012013-02-12 11:45:22 +0000355:doc:`HowToUseAttributes`
356 Answers some questions about the new Attributes infrastructure.
Sean Silva12159ff2013-01-20 02:19:36 +0000357
Justin Holewinski45df8822013-03-30 16:41:14 +0000358:doc:`NVPTXUsage`
359 This document describes using the NVPTX back-end to compile GPU kernels.
360
Tom Stellard45bb48e2015-06-13 03:28:10 +0000361:doc:`AMDGPUUsage`
362 This document describes how to use the AMDGPU back-end.
Tom Stellard9d7ddd52014-11-14 14:08:00 +0000363
Andrew Trick5e029ce2013-12-24 02:57:25 +0000364:doc:`StackMaps`
365 LLVM support for mapping instruction addresses to the location of
366 values and allowing code to be patched.
Justin Holewinski45df8822013-03-30 16:41:14 +0000367
James Molloy3f7878a2014-05-12 15:13:39 +0000368:doc:`BigEndianNEON`
369 LLVM's support for generating NEON instructions on big endian ARM targets is
370 somewhat nonintuitive. This document explains the implementation and rationale.
371
Alex Lorenz6a128332014-08-19 17:05:58 +0000372:doc:`CoverageMappingFormat`
373 This describes the format and encoding used for LLVM’s code coverage mapping.
James Molloy3f7878a2014-05-12 15:13:39 +0000374
Matt Arsenault03f0e832014-12-03 18:35:11 +0000375:doc:`Statepoints`
376 This describes a set of experimental extensions for garbage
377 collection support.
378
Stepan Dyatkovskiyf0c3a342014-12-10 17:42:01 +0000379:doc:`MergeFunctions`
380 Describes functions merging optimization.
381
Sean Silvab6472fe2015-02-04 20:51:19 +0000382:doc:`InAlloca`
383 Description of the ``inalloca`` argument attribute.
384
Sanjoy Das5553bc82015-06-15 19:38:15 +0000385:doc:`FaultMaps`
386 LLVM support for folding control flow into faulting machine instructions.
387
Jingyue Wu4f2a6cb2015-11-10 22:35:47 +0000388:doc:`CompileCudaWithLLVM`
389 LLVM support for CUDA.
390
David Majnemera6539272016-07-23 04:05:08 +0000391:doc:`Coroutines`
392 LLVM support for coroutines.
393
Ahmed Bougacha29d9da12016-11-04 17:57:34 +0000394:doc:`GlobalISel`
395 This describes the prototype instruction selection replacement, GlobalISel.
396
Sean Silva12159ff2013-01-20 02:19:36 +0000397Development Process Documentation
398=================================
399
Sean Silva12159ff2013-01-20 02:19:36 +0000400Information about LLVM's development process.
401
402.. toctree::
403 :hidden:
404
Sean Silva9d205c82013-03-30 15:32:47 +0000405 DeveloperPolicy
Sean Silva12159ff2013-01-20 02:19:36 +0000406 Projects
407 LLVMBuild
408 HowToReleaseLLVM
Sean Silvabdb940f2013-01-28 21:28:10 +0000409 Packaging
Sean Silva3f93a612013-09-09 19:09:00 +0000410 ReleaseProcess
Adrian Prantladc41ca2014-10-03 20:17:32 +0000411 Phabricator
Sean Silva12159ff2013-01-20 02:19:36 +0000412
Sean Silva9d205c82013-03-30 15:32:47 +0000413:doc:`DeveloperPolicy`
414 The LLVM project's policy towards developers and their contributions.
415
Sean Silva9d0eb942013-01-20 02:19:42 +0000416:doc:`Projects`
Sean Silva12159ff2013-01-20 02:19:36 +0000417 How-to guide and templates for new projects that *use* the LLVM
418 infrastructure. The templates (directory organization, Makefiles, and test
419 tree) allow the project code to be located outside (or inside) the ``llvm/``
420 tree, while using LLVM header files and libraries.
421
Sean Silva9d0eb942013-01-20 02:19:42 +0000422:doc:`LLVMBuild`
Sean Silva12159ff2013-01-20 02:19:36 +0000423 Describes the LLVMBuild organization and files used by LLVM to specify
424 component descriptions.
425
Sean Silva9d0eb942013-01-20 02:19:42 +0000426:doc:`HowToReleaseLLVM`
Sean Silva12159ff2013-01-20 02:19:36 +0000427 This is a guide to preparing LLVM releases. Most developers can ignore it.
428
Renato Golinc08f2182013-05-28 10:32:55 +0000429:doc:`ReleaseProcess`
Jyoti Allur223602d2014-09-26 06:59:15 +0000430 This is a guide to validate a new release, during the release process. Most developers can ignore it.
Renato Golinc08f2182013-05-28 10:32:55 +0000431
Sean Silvabdb940f2013-01-28 21:28:10 +0000432:doc:`Packaging`
433 Advice on packaging LLVM into a distribution.
434
Adrian Prantladc41ca2014-10-03 20:17:32 +0000435:doc:`Phabricator`
436 Describes how to use the Phabricator code review tool hosted on
437 http://reviews.llvm.org/ and its command line interface, Arcanist.
438
Sean Silva01299242013-03-30 15:32:51 +0000439Community
440=========
441
442LLVM has a thriving community of friendly and helpful developers.
443The two primary communication mechanisms in the LLVM community are mailing
444lists and IRC.
445
Sean Silva12159ff2013-01-20 02:19:36 +0000446Mailing Lists
Sean Silva01299242013-03-30 15:32:51 +0000447-------------
Sean Silva12159ff2013-01-20 02:19:36 +0000448
449If you can't find what you need in these docs, try consulting the mailing
450lists.
451
Tanya Lattner0d28f802015-08-05 03:51:17 +0000452`Developer's List (llvm-dev)`__
Sean Silva12159ff2013-01-20 02:19:36 +0000453 This list is for people who want to be included in technical discussions of
454 LLVM. People post to this list when they have questions about writing code
455 for or using the LLVM tools. It is relatively low volume.
456
Tanya Lattner0d28f802015-08-05 03:51:17 +0000457 .. __: http://lists.llvm.org/mailman/listinfo/llvm-dev
Sean Silva12159ff2013-01-20 02:19:36 +0000458
Sean Silvaab4997d2013-03-30 15:33:01 +0000459`Commits Archive (llvm-commits)`__
Sean Silva12159ff2013-01-20 02:19:36 +0000460 This list contains all commit messages that are made when LLVM developers
Sean Silva2a746992013-03-30 15:33:02 +0000461 commit code changes to the repository. It also serves as a forum for
462 patch review (i.e. send patches here). It is useful for those who want to
463 stay on the bleeding edge of LLVM development. This list is very high
464 volume.
Sean Silva12159ff2013-01-20 02:19:36 +0000465
Tanya Lattner0d28f802015-08-05 03:51:17 +0000466 .. __: http://lists.llvm.org/pipermail/llvm-commits/
Sean Silva12159ff2013-01-20 02:19:36 +0000467
Tanya Lattner0d28f802015-08-05 03:51:17 +0000468`Bugs & Patches Archive (llvm-bugs)`__
Sean Silva2a746992013-03-30 15:33:02 +0000469 This list gets emailed every time a bug is opened and closed. It is
Tanya Lattner0d28f802015-08-05 03:51:17 +0000470 higher volume than the LLVM-dev list.
Sean Silva84b296c2013-03-30 15:32:54 +0000471
Tanya Lattner0d28f802015-08-05 03:51:17 +0000472 .. __: http://lists.llvm.org/pipermail/llvm-bugs/
Sean Silva84b296c2013-03-30 15:32:54 +0000473
Sean Silvaab4997d2013-03-30 15:33:01 +0000474`Test Results Archive (llvm-testresults)`__
Sean Silva12159ff2013-01-20 02:19:36 +0000475 A message is automatically sent to this list by every active nightly tester
476 when it completes. As such, this list gets email several times each day,
477 making it a high volume list.
478
Tanya Lattner0d28f802015-08-05 03:51:17 +0000479 .. __: http://lists.llvm.org/pipermail/llvm-testresults/
Sean Silva9d0eb942013-01-20 02:19:42 +0000480
Sean Silvaab4997d2013-03-30 15:33:01 +0000481`LLVM Announcements List (llvm-announce)`__
Sean Silva84b296c2013-03-30 15:32:54 +0000482 This is a low volume list that provides important announcements regarding
483 LLVM. It gets email about once a month.
484
Tanya Lattner0d28f802015-08-05 03:51:17 +0000485 .. __: http://lists.llvm.org/mailman/listinfo/llvm-announce
Sean Silva84b296c2013-03-30 15:32:54 +0000486
Sean Silva01299242013-03-30 15:32:51 +0000487IRC
488---
489
490Users and developers of the LLVM project (including subprojects such as Clang)
491can be found in #llvm on `irc.oftc.net <irc://irc.oftc.net/llvm>`_.
492
493This channel has several bots.
494
495* Buildbot reporters
496
497 * llvmbb - Bot for the main LLVM buildbot master.
498 http://lab.llvm.org:8011/console
499 * bb-chapuni - An individually run buildbot master. http://bb.pgr.jp/console
500 * smooshlab - Apple's internal buildbot master.
501
502* robot - Bugzilla linker. %bug <number>
503
504* clang-bot - A `geordi <http://www.eelis.net/geordi/>`_ instance running
505 near-trunk clang instead of gcc.
506
Renato Goline433cf72016-07-20 09:38:04 +0000507Community wide proposals
508------------------------
509
510Proposals for massive changes in how the community behaves and how the work flow
511can be better.
512
513.. toctree::
514 :hidden:
515
516 CodeOfConduct
Mehdi Amini647deb82016-10-12 23:02:02 +0000517 Proposals/GitHubMove
Renato Goline433cf72016-07-20 09:38:04 +0000518
519:doc:`CodeOfConduct`
520 Proposal to adopt a code of conduct on the LLVM social spaces (lists, events,
521 IRC, etc).
522
Mehdi Amini647deb82016-10-12 23:02:02 +0000523:doc:`Proposals/GitHubMove`
Renato Goline433cf72016-07-20 09:38:04 +0000524 Proposal to move from SVN/Git to GitHub.
525
Sean Silva01299242013-03-30 15:32:51 +0000526
Daniel Dunbarfbb80412012-04-19 16:31:37 +0000527Indices and tables
528==================
529
530* :ref:`genindex`
531* :ref:`search`