blob: de9218e6f4c649fadd80f538ff48c920ca21151b [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
George Burgess IVcf477f42018-10-26 20:56:03 +000071 HowToBuildWithPGO
Peter Smith7411da52017-11-07 09:40:05 +000072 HowToCrossCompileBuiltinsOnArm
Renato Golind24899b2013-09-08 20:44:48 +000073 HowToCrossCompileLLVM
Sean Silva12159ff2013-01-20 02:19:36 +000074 CommandGuide/index
Sean Silva12159ff2013-01-20 02:19:36 +000075 GettingStarted
76 GettingStartedVS
77 FAQ
78 Lexicon
Sean Silva12159ff2013-01-20 02:19:36 +000079 HowToAddABuilder
80 yaml2obj
81 HowToSubmitABug
82 SphinxQuickstartTemplate
Chandler Carruth1230d222018-08-06 00:38:31 +000083 MarkdownQuickstartTemplate
Sean Silva12159ff2013-01-20 02:19:36 +000084 Phabricator
85 TestingGuide
86 tutorial/index
87 ReleaseNotes
88 Passes
89 YamlIO
Sean Silva163b5c42013-03-30 15:32:50 +000090 GetElementPtr
Philip Reamesf8bf9dd2015-02-27 23:14:50 +000091 Frontend/PerformanceTips
Sean Silva3f93a612013-09-09 19:09:00 +000092 MCJITDesignAndImplementation
Chandler Carruth36293432016-06-30 20:27:54 +000093 CodeOfConduct
Jingyue Wu4f2a6cb2015-11-10 22:35:47 +000094 CompileCudaWithLLVM
Chandler Carruth36293432016-06-30 20:27:54 +000095 ReportingGuide
Rafael Espindola50a17392017-05-24 16:39:12 +000096 Benchmarking
Ilya Biryukovaf351da2017-06-30 09:46:45 +000097 Docker
Sean Silva12159ff2013-01-20 02:19:36 +000098
Sean Silva9d0eb942013-01-20 02:19:42 +000099:doc:`GettingStarted`
Sean Silva12159ff2013-01-20 02:19:36 +0000100 Discusses how to get up and running quickly with the LLVM infrastructure.
101 Everything from unpacking and compilation of the distribution to execution
102 of some tools.
103
Sean Silva9d0eb942013-01-20 02:19:42 +0000104:doc:`CMake`
Sean Silva12159ff2013-01-20 02:19:36 +0000105 An addendum to the main Getting Started guide for those using the `CMake
106 build system <http://www.cmake.org>`_.
107
Sean Silva9d0eb942013-01-20 02:19:42 +0000108:doc:`HowToBuildOnARM`
Sean Silva12159ff2013-01-20 02:19:36 +0000109 Notes on building and testing LLVM/Clang on ARM.
110
George Burgess IVcf477f42018-10-26 20:56:03 +0000111:doc:`HowToBuildWithPGO`
112 Notes on building LLVM/Clang with PGO.
113
Peter Smith7411da52017-11-07 09:40:05 +0000114:doc:`HowToCrossCompileBuiltinsOnArm`
115 Notes on cross-building and testing the compiler-rt builtins for Arm.
116
Renato Golind24899b2013-09-08 20:44:48 +0000117:doc:`HowToCrossCompileLLVM`
118 Notes on cross-building and testing LLVM/Clang.
119
Sean Silva9d0eb942013-01-20 02:19:42 +0000120:doc:`GettingStartedVS`
Sean Silva12159ff2013-01-20 02:19:36 +0000121 An addendum to the main Getting Started guide for those using Visual Studio
122 on Windows.
123
Sean Silva9d0eb942013-01-20 02:19:42 +0000124:doc:`tutorial/index`
Sean Silva12159ff2013-01-20 02:19:36 +0000125 Tutorials about using LLVM. Includes a tutorial about making a custom
126 language with LLVM.
127
Sean Silva9d0eb942013-01-20 02:19:42 +0000128:doc:`LLVM Command Guide <CommandGuide/index>`
Sean Silva12159ff2013-01-20 02:19:36 +0000129 A reference manual for the LLVM command line utilities ("man" pages for LLVM
130 tools).
131
Sean Silva9d0eb942013-01-20 02:19:42 +0000132:doc:`Passes`
Sean Silva12159ff2013-01-20 02:19:36 +0000133 A list of optimizations and analyses implemented in LLVM.
134
Sean Silva9d0eb942013-01-20 02:19:42 +0000135:doc:`FAQ`
Sean Silva12159ff2013-01-20 02:19:36 +0000136 A list of common questions and problems and their solutions.
137
Sean Silva9d0eb942013-01-20 02:19:42 +0000138:doc:`Release notes for the current release <ReleaseNotes>`
Sean Silva12159ff2013-01-20 02:19:36 +0000139 This describes new features, known bugs, and other limitations.
140
Sean Silva9d0eb942013-01-20 02:19:42 +0000141:doc:`HowToSubmitABug`
Sean Silva12159ff2013-01-20 02:19:36 +0000142 Instructions for properly submitting information about any bugs you run into
143 in the LLVM system.
Sean Silva12159ff2013-01-20 02:19:36 +0000144
Sean Silva9d0eb942013-01-20 02:19:42 +0000145:doc:`SphinxQuickstartTemplate`
Sean Silva12159ff2013-01-20 02:19:36 +0000146 A template + tutorial for writing new Sphinx documentation. It is meant
147 to be read in source form.
148
Sean Silva9d0eb942013-01-20 02:19:42 +0000149:doc:`LLVM Testing Infrastructure Guide <TestingGuide>`
Sean Silva12159ff2013-01-20 02:19:36 +0000150 A reference manual for using the LLVM testing infrastructure.
151
Matthias Braun4f340e92018-08-31 21:47:01 +0000152:doc:`TestSuiteGuide`
153 Describes how to compile and run the test-suite benchmarks.
154
Sean Silva9d0eb942013-01-20 02:19:42 +0000155`How to build the C, C++, ObjC, and ObjC++ front end`__
Sean Silva12159ff2013-01-20 02:19:36 +0000156 Instructions for building the clang front-end from source.
157
Sean Silva9d0eb942013-01-20 02:19:42 +0000158 .. __: http://clang.llvm.org/get_started.html
Sean Silva12159ff2013-01-20 02:19:36 +0000159
Sean Silva9d0eb942013-01-20 02:19:42 +0000160:doc:`Lexicon`
Sean Silva12159ff2013-01-20 02:19:36 +0000161 Definition of acronyms, terms and concepts used in LLVM.
162
Sean Silva9d0eb942013-01-20 02:19:42 +0000163:doc:`HowToAddABuilder`
Sean Silva12159ff2013-01-20 02:19:36 +0000164 Instructions for adding new builder to LLVM buildbot master.
165
Sean Silva9d0eb942013-01-20 02:19:42 +0000166:doc:`YamlIO`
Sean Silva12159ff2013-01-20 02:19:36 +0000167 A reference guide for using LLVM's YAML I/O library.
168
Sean Silva163b5c42013-03-30 15:32:50 +0000169:doc:`GetElementPtr`
170 Answers to some very frequent questions about LLVM's most frequently
171 misunderstood instruction.
172
Philip Reamesf8bf9dd2015-02-27 23:14:50 +0000173:doc:`Frontend/PerformanceTips`
Vlad Tsyrklevich31b45312017-09-20 20:38:14 +0000174 A collection of tips for frontend authors on how to generate IR
Philip Reamesf8bf9dd2015-02-27 23:14:50 +0000175 which LLVM is able to effectively optimize.
176
Ilya Biryukovaf351da2017-06-30 09:46:45 +0000177:doc:`Docker`
178 A reference for using Dockerfiles provided with LLVM.
179
Philip Reamesf8bf9dd2015-02-27 23:14:50 +0000180
Sean Silva12159ff2013-01-20 02:19:36 +0000181Programming Documentation
182=========================
183
184For developers of applications which use LLVM as a library.
185
186.. toctree::
187 :hidden:
188
189 Atomics
190 CodingStandards
191 CommandLine
192 CompilerWriterInfo
193 ExtendingLLVM
194 HowToSetUpLLVMStyleRTTI
195 ProgrammersManual
Nico Rieck1da45292013-04-10 23:28:17 +0000196 Extensions
Kostya Serebryany35ce8632015-03-30 23:05:30 +0000197 LibFuzzer
Justin Bognerfd5b2a02017-10-12 01:44:24 +0000198 FuzzingLLVM
Kostya Serebryany9a293ca2016-06-07 23:13:54 +0000199 ScudoHardenedAllocator
Andrew Kaylor3aeda4f2016-08-26 23:11:48 +0000200 OptBisect
Sean Silva12159ff2013-01-20 02:19:36 +0000201
Sean Silva9d0eb942013-01-20 02:19:42 +0000202:doc:`LLVM Language Reference Manual <LangRef>`
Sean Silva12159ff2013-01-20 02:19:36 +0000203 Defines the LLVM intermediate representation and the assembly form of the
204 different nodes.
205
Sean Silva9d0eb942013-01-20 02:19:42 +0000206:doc:`Atomics`
Sean Silva12159ff2013-01-20 02:19:36 +0000207 Information about LLVM's concurrency model.
208
Sean Silva9d0eb942013-01-20 02:19:42 +0000209:doc:`ProgrammersManual`
Sean Silva12159ff2013-01-20 02:19:36 +0000210 Introduction to the general layout of the LLVM sourcebase, important classes
211 and APIs, and some tips & tricks.
212
Nico Rieck1da45292013-04-10 23:28:17 +0000213:doc:`Extensions`
214 LLVM-specific extensions to tools and formats LLVM seeks compatibility with.
215
Sean Silva9d0eb942013-01-20 02:19:42 +0000216:doc:`CommandLine`
Sean Silva12159ff2013-01-20 02:19:36 +0000217 Provides information on using the command line parsing library.
218
Sean Silva9d0eb942013-01-20 02:19:42 +0000219:doc:`CodingStandards`
Sean Silva12159ff2013-01-20 02:19:36 +0000220 Details the LLVM coding standards and provides useful information on writing
221 efficient C++ code.
222
Sean Silva9d0eb942013-01-20 02:19:42 +0000223:doc:`HowToSetUpLLVMStyleRTTI`
Sean Silva12159ff2013-01-20 02:19:36 +0000224 How to make ``isa<>``, ``dyn_cast<>``, etc. available for clients of your
225 class hierarchy.
226
Sean Silva9d0eb942013-01-20 02:19:42 +0000227:doc:`ExtendingLLVM`
Sean Silva12159ff2013-01-20 02:19:36 +0000228 Look here to see how to add instructions and intrinsics to LLVM.
229
Sean Silva9d0eb942013-01-20 02:19:42 +0000230`Doxygen generated documentation <http://llvm.org/doxygen/>`_
Sean Silva12159ff2013-01-20 02:19:36 +0000231 (`classes <http://llvm.org/doxygen/inherits.html>`_)
Sean Silva12159ff2013-01-20 02:19:36 +0000232
Peter Collingbourne943d2702015-01-13 18:49:42 +0000233`Documentation for Go bindings <http://godoc.org/llvm.org/llvm/bindings/go/llvm>`_
234
Sean Silva9d0eb942013-01-20 02:19:42 +0000235`ViewVC Repository Browser <http://llvm.org/viewvc/>`_
236 ..
Sean Silva12159ff2013-01-20 02:19:36 +0000237
Sean Silva9d0eb942013-01-20 02:19:42 +0000238:doc:`CompilerWriterInfo`
Sean Silva12159ff2013-01-20 02:19:36 +0000239 A list of helpful links for compiler writers.
240
Kostya Serebryany35ce8632015-03-30 23:05:30 +0000241:doc:`LibFuzzer`
242 A library for writing in-process guided fuzzers.
243
Justin Bognerfd5b2a02017-10-12 01:44:24 +0000244:doc:`FuzzingLLVM`
245 Information on writing and using Fuzzers to find bugs in LLVM.
246
Kostya Serebryany9a293ca2016-06-07 23:13:54 +0000247:doc:`ScudoHardenedAllocator`
248 A library that implements a security-hardened `malloc()`.
249
Andrew Kaylor3aeda4f2016-08-26 23:11:48 +0000250:doc:`OptBisect`
251 A command line option for debugging optimization-induced failures.
252
Florian Hahn57edaa42018-01-04 17:12:21 +0000253.. _index-subsystem-docs:
254
Sean Silva12159ff2013-01-20 02:19:36 +0000255Subsystem Documentation
256=======================
257
258For API clients and LLVM developers.
259
260.. toctree::
261 :hidden:
262
263 AliasAnalysis
George Burgess IV3bbeb732016-08-17 00:17:29 +0000264 MemorySSA
Sean Silva12159ff2013-01-20 02:19:36 +0000265 BitCodeFormat
Duncan P. N. Exon Smith6e40cec2014-04-11 23:21:07 +0000266 BlockFrequencyTerminology
Sean Silva12159ff2013-01-20 02:19:36 +0000267 BranchWeightMetadata
268 Bugpoint
269 CodeGenerator
270 ExceptionHandling
271 LinkTimeOptimization
272 SegmentedStacks
273 TableGenFundamentals
Renato Golinca105642014-03-20 16:08:34 +0000274 TableGen/index
Sean Silva12159ff2013-01-20 02:19:36 +0000275 DebuggingJITedCode
276 GoldPlugin
277 MarkedUpDisassembly
278 SystemLibrary
Kristina Brooksab834fd2018-09-18 18:05:38 +0000279 SupportLibrary
Sean Silva12159ff2013-01-20 02:19:36 +0000280 SourceLevelDebugging
281 Vectorizers
282 WritingAnLLVMBackend
283 GarbageCollection
284 WritingAnLLVMPass
Joe Abbeyba3e9012013-02-12 11:45:22 +0000285 HowToUseAttributes
Justin Holewinski45df8822013-03-30 16:41:14 +0000286 NVPTXUsage
Tom Stellard45bb48e2015-06-13 03:28:10 +0000287 AMDGPUUsage
Andrew Trick5e029ce2013-12-24 02:57:25 +0000288 StackMaps
Sean Silva216f1ee2014-03-02 00:21:42 +0000289 InAlloca
James Molloy3f7878a2014-05-12 15:13:39 +0000290 BigEndianNEON
Alex Lorenz6a128332014-08-19 17:05:58 +0000291 CoverageMappingFormat
Matt Arsenault03f0e832014-12-03 18:35:11 +0000292 Statepoints
Stepan Dyatkovskiyf0c3a342014-12-10 17:42:01 +0000293 MergeFunctions
Peter Collingbourne7efd7502016-06-24 21:21:32 +0000294 TypeMetadata
Sanjoy Das5553bc82015-06-15 19:38:15 +0000295 FaultMaps
Alex Lorenz3d311772015-08-06 22:55:19 +0000296 MIRLangRef
David Majnemera6539272016-07-23 04:05:08 +0000297 Coroutines
Ahmed Bougacha29d9da12016-11-04 17:57:34 +0000298 GlobalISel
Dean Michael Berrisf3da16b2016-11-09 00:24:58 +0000299 XRay
Dean Michael Berris46979b42017-03-31 02:51:19 +0000300 XRayExample
Keith Wyss3d0bc9e2017-08-02 21:47:27 +0000301 XRayFDRFormat
Zachary Turner218ce832016-11-10 19:24:21 +0000302 PDB/index
Vlad Tsyrklevich31b45312017-09-20 20:38:14 +0000303 CFIVerify
Chandler Carruth1230d222018-08-06 00:38:31 +0000304 SpeculativeLoadHardening
Sean Silva12159ff2013-01-20 02:19:36 +0000305
Sean Silva9d0eb942013-01-20 02:19:42 +0000306:doc:`WritingAnLLVMPass`
Sean Silva12159ff2013-01-20 02:19:36 +0000307 Information on how to write LLVM transformations and analyses.
308
Sean Silva9d0eb942013-01-20 02:19:42 +0000309:doc:`WritingAnLLVMBackend`
Sean Silva12159ff2013-01-20 02:19:36 +0000310 Information on how to write LLVM backends for machine targets.
311
Sean Silva9d0eb942013-01-20 02:19:42 +0000312:doc:`CodeGenerator`
Sean Silva12159ff2013-01-20 02:19:36 +0000313 The design and implementation of the LLVM code generator. Useful if you are
314 working on retargetting LLVM to a new architecture, designing a new codegen
315 pass, or enhancing existing components.
316
Alex Lorenz3d311772015-08-06 22:55:19 +0000317:doc:`Machine IR (MIR) Format Reference Manual <MIRLangRef>`
318 A reference manual for the MIR serialization format, which is used to test
319 LLVM's code generation passes.
320
Sean Silva0b4df9b2014-04-07 22:42:53 +0000321:doc:`TableGen <TableGen/index>`
Sean Silva12159ff2013-01-20 02:19:36 +0000322 Describes the TableGen tool, which is used heavily by the LLVM code
323 generator.
324
Sean Silva9d0eb942013-01-20 02:19:42 +0000325:doc:`AliasAnalysis`
Sean Silva12159ff2013-01-20 02:19:36 +0000326 Information on how to write a new alias analysis implementation or how to
327 use existing analyses.
328
George Burgess IV3bbeb732016-08-17 00:17:29 +0000329:doc:`MemorySSA`
330 Information about the MemorySSA utility in LLVM, as well as how to use it.
331
Sean Silva9d0eb942013-01-20 02:19:42 +0000332:doc:`GarbageCollection`
Sean Silva12159ff2013-01-20 02:19:36 +0000333 The interfaces source-language compilers should use for compiling GC'd
334 programs.
335
Sean Silva9d0eb942013-01-20 02:19:42 +0000336:doc:`Source Level Debugging with LLVM <SourceLevelDebugging>`
Sean Silva12159ff2013-01-20 02:19:36 +0000337 This document describes the design and philosophy behind the LLVM
338 source-level debugger.
339
Sean Silva9d0eb942013-01-20 02:19:42 +0000340:doc:`Vectorizers`
Sean Silva12159ff2013-01-20 02:19:36 +0000341 This document describes the current status of vectorization in LLVM.
342
Sean Silva9d0eb942013-01-20 02:19:42 +0000343:doc:`ExceptionHandling`
Sean Silva12159ff2013-01-20 02:19:36 +0000344 This document describes the design and implementation of exception handling
345 in LLVM.
346
Sean Silva9d0eb942013-01-20 02:19:42 +0000347:doc:`Bugpoint`
Sean Silva12159ff2013-01-20 02:19:36 +0000348 Automatic bug finder and test-case reducer description and usage
349 information.
350
Sean Silva9d0eb942013-01-20 02:19:42 +0000351:doc:`BitCodeFormat`
Sean Silva12159ff2013-01-20 02:19:36 +0000352 This describes the file format and encoding used for LLVM "bc" files.
353
Kristina Brooksab834fd2018-09-18 18:05:38 +0000354:doc:`Support Library <SupportLibrary>`
355 This document describes the LLVM Support Library (``lib/Support``) and
Sean Silva12159ff2013-01-20 02:19:36 +0000356 how to keep LLVM source code portable
357
Sean Silva9d0eb942013-01-20 02:19:42 +0000358:doc:`LinkTimeOptimization`
Sean Silva12159ff2013-01-20 02:19:36 +0000359 This document describes the interface between LLVM intermodular optimizer
360 and the linker and its design
361
Sean Silva9d0eb942013-01-20 02:19:42 +0000362:doc:`GoldPlugin`
Sean Silva12159ff2013-01-20 02:19:36 +0000363 How to build your programs with link-time optimization on Linux.
364
Sean Silva9d0eb942013-01-20 02:19:42 +0000365:doc:`DebuggingJITedCode`
Sean Silva12159ff2013-01-20 02:19:36 +0000366 How to debug JITed code with GDB.
367
Andrew Kaylor27299c32013-08-21 22:15:09 +0000368:doc:`MCJITDesignAndImplementation`
369 Describes the inner workings of MCJIT execution engine.
370
Sean Silva9d0eb942013-01-20 02:19:42 +0000371:doc:`BranchWeightMetadata`
Sean Silva12159ff2013-01-20 02:19:36 +0000372 Provides information about Branch Prediction Information.
373
Duncan P. N. Exon Smith6e40cec2014-04-11 23:21:07 +0000374:doc:`BlockFrequencyTerminology`
375 Provides information about terminology used in the ``BlockFrequencyInfo``
376 analysis pass.
377
Sean Silva9d0eb942013-01-20 02:19:42 +0000378:doc:`SegmentedStacks`
Sean Silva12159ff2013-01-20 02:19:36 +0000379 This document describes segmented stacks and how they are used in LLVM.
380
Sean Silva9d0eb942013-01-20 02:19:42 +0000381:doc:`MarkedUpDisassembly`
Sean Silva12159ff2013-01-20 02:19:36 +0000382 This document describes the optional rich disassembly output syntax.
383
Joe Abbeyba3e9012013-02-12 11:45:22 +0000384:doc:`HowToUseAttributes`
385 Answers some questions about the new Attributes infrastructure.
Sean Silva12159ff2013-01-20 02:19:36 +0000386
Justin Holewinski45df8822013-03-30 16:41:14 +0000387:doc:`NVPTXUsage`
Tony Tyef16a45e2017-06-06 20:31:59 +0000388 This document describes using the NVPTX backend to compile GPU kernels.
Justin Holewinski45df8822013-03-30 16:41:14 +0000389
Tom Stellard45bb48e2015-06-13 03:28:10 +0000390:doc:`AMDGPUUsage`
Tony Tyef16a45e2017-06-06 20:31:59 +0000391 This document describes using the AMDGPU backend to compile GPU kernels.
Tom Stellard9d7ddd52014-11-14 14:08:00 +0000392
Andrew Trick5e029ce2013-12-24 02:57:25 +0000393:doc:`StackMaps`
394 LLVM support for mapping instruction addresses to the location of
395 values and allowing code to be patched.
Justin Holewinski45df8822013-03-30 16:41:14 +0000396
James Molloy3f7878a2014-05-12 15:13:39 +0000397:doc:`BigEndianNEON`
398 LLVM's support for generating NEON instructions on big endian ARM targets is
399 somewhat nonintuitive. This document explains the implementation and rationale.
400
Alex Lorenz6a128332014-08-19 17:05:58 +0000401:doc:`CoverageMappingFormat`
402 This describes the format and encoding used for LLVM’s code coverage mapping.
James Molloy3f7878a2014-05-12 15:13:39 +0000403
Matt Arsenault03f0e832014-12-03 18:35:11 +0000404:doc:`Statepoints`
405 This describes a set of experimental extensions for garbage
406 collection support.
407
Stepan Dyatkovskiyf0c3a342014-12-10 17:42:01 +0000408:doc:`MergeFunctions`
409 Describes functions merging optimization.
410
Sean Silvab6472fe2015-02-04 20:51:19 +0000411:doc:`InAlloca`
412 Description of the ``inalloca`` argument attribute.
413
Sanjoy Das5553bc82015-06-15 19:38:15 +0000414:doc:`FaultMaps`
415 LLVM support for folding control flow into faulting machine instructions.
416
Jingyue Wu4f2a6cb2015-11-10 22:35:47 +0000417:doc:`CompileCudaWithLLVM`
418 LLVM support for CUDA.
419
David Majnemera6539272016-07-23 04:05:08 +0000420:doc:`Coroutines`
421 LLVM support for coroutines.
422
Ahmed Bougacha29d9da12016-11-04 17:57:34 +0000423:doc:`GlobalISel`
424 This describes the prototype instruction selection replacement, GlobalISel.
425
Dean Michael Berrisf3da16b2016-11-09 00:24:58 +0000426:doc:`XRay`
427 High-level documentation of how to use XRay in LLVM.
428
Dean Michael Berris38daca62017-03-30 23:46:36 +0000429:doc:`XRayExample`
430 An example of how to debug an application with XRay.
431
Zachary Turner218ce832016-11-10 19:24:21 +0000432:doc:`The Microsoft PDB File Format <PDB/index>`
433 A detailed description of the Microsoft PDB (Program Database) file format.
434
Vlad Tsyrklevich31b45312017-09-20 20:38:14 +0000435:doc:`CFIVerify`
436 A description of the verification tool for Control Flow Integrity.
437
Chandler Carruth1230d222018-08-06 00:38:31 +0000438:doc:`SpeculativeLoadHardening`
439 A description of the Speculative Load Hardening mitigation for Spectre v1.
440
Sean Silva12159ff2013-01-20 02:19:36 +0000441Development Process Documentation
442=================================
443
Sean Silva12159ff2013-01-20 02:19:36 +0000444Information about LLVM's development process.
445
446.. toctree::
447 :hidden:
448
Florian Hahn57edaa42018-01-04 17:12:21 +0000449 Contributing
Sean Silva9d205c82013-03-30 15:32:47 +0000450 DeveloperPolicy
Sean Silva12159ff2013-01-20 02:19:36 +0000451 Projects
452 LLVMBuild
453 HowToReleaseLLVM
Sean Silvabdb940f2013-01-28 21:28:10 +0000454 Packaging
Sean Silva3f93a612013-09-09 19:09:00 +0000455 ReleaseProcess
Adrian Prantladc41ca2014-10-03 20:17:32 +0000456 Phabricator
Sean Silva12159ff2013-01-20 02:19:36 +0000457
Florian Hahn57edaa42018-01-04 17:12:21 +0000458:doc:`Contributing`
459 An overview on how to contribute to LLVM.
460
Sean Silva9d205c82013-03-30 15:32:47 +0000461:doc:`DeveloperPolicy`
462 The LLVM project's policy towards developers and their contributions.
463
Sean Silva9d0eb942013-01-20 02:19:42 +0000464:doc:`Projects`
Sean Silva12159ff2013-01-20 02:19:36 +0000465 How-to guide and templates for new projects that *use* the LLVM
466 infrastructure. The templates (directory organization, Makefiles, and test
467 tree) allow the project code to be located outside (or inside) the ``llvm/``
468 tree, while using LLVM header files and libraries.
469
Sean Silva9d0eb942013-01-20 02:19:42 +0000470:doc:`LLVMBuild`
Sean Silva12159ff2013-01-20 02:19:36 +0000471 Describes the LLVMBuild organization and files used by LLVM to specify
472 component descriptions.
473
Sean Silva9d0eb942013-01-20 02:19:42 +0000474:doc:`HowToReleaseLLVM`
Sean Silva12159ff2013-01-20 02:19:36 +0000475 This is a guide to preparing LLVM releases. Most developers can ignore it.
476
Renato Golinc08f2182013-05-28 10:32:55 +0000477:doc:`ReleaseProcess`
Jyoti Allur223602d2014-09-26 06:59:15 +0000478 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 +0000479
Sean Silvabdb940f2013-01-28 21:28:10 +0000480:doc:`Packaging`
481 Advice on packaging LLVM into a distribution.
482
Adrian Prantladc41ca2014-10-03 20:17:32 +0000483:doc:`Phabricator`
484 Describes how to use the Phabricator code review tool hosted on
485 http://reviews.llvm.org/ and its command line interface, Arcanist.
486
Sean Silva01299242013-03-30 15:32:51 +0000487Community
488=========
489
490LLVM has a thriving community of friendly and helpful developers.
491The two primary communication mechanisms in the LLVM community are mailing
492lists and IRC.
493
Sean Silva12159ff2013-01-20 02:19:36 +0000494Mailing Lists
Sean Silva01299242013-03-30 15:32:51 +0000495-------------
Sean Silva12159ff2013-01-20 02:19:36 +0000496
497If you can't find what you need in these docs, try consulting the mailing
498lists.
499
Tanya Lattner0d28f802015-08-05 03:51:17 +0000500`Developer's List (llvm-dev)`__
Sean Silva12159ff2013-01-20 02:19:36 +0000501 This list is for people who want to be included in technical discussions of
502 LLVM. People post to this list when they have questions about writing code
503 for or using the LLVM tools. It is relatively low volume.
504
Tanya Lattner0d28f802015-08-05 03:51:17 +0000505 .. __: http://lists.llvm.org/mailman/listinfo/llvm-dev
Sean Silva12159ff2013-01-20 02:19:36 +0000506
Sean Silvaab4997d2013-03-30 15:33:01 +0000507`Commits Archive (llvm-commits)`__
Sean Silva12159ff2013-01-20 02:19:36 +0000508 This list contains all commit messages that are made when LLVM developers
Sean Silva2a746992013-03-30 15:33:02 +0000509 commit code changes to the repository. It also serves as a forum for
510 patch review (i.e. send patches here). It is useful for those who want to
511 stay on the bleeding edge of LLVM development. This list is very high
512 volume.
Sean Silva12159ff2013-01-20 02:19:36 +0000513
Tanya Lattner0d28f802015-08-05 03:51:17 +0000514 .. __: http://lists.llvm.org/pipermail/llvm-commits/
Sean Silva12159ff2013-01-20 02:19:36 +0000515
Tanya Lattner0d28f802015-08-05 03:51:17 +0000516`Bugs & Patches Archive (llvm-bugs)`__
Sean Silva2a746992013-03-30 15:33:02 +0000517 This list gets emailed every time a bug is opened and closed. It is
Tanya Lattner0d28f802015-08-05 03:51:17 +0000518 higher volume than the LLVM-dev list.
Sean Silva84b296c2013-03-30 15:32:54 +0000519
Tanya Lattner0d28f802015-08-05 03:51:17 +0000520 .. __: http://lists.llvm.org/pipermail/llvm-bugs/
Sean Silva84b296c2013-03-30 15:32:54 +0000521
Sean Silvaab4997d2013-03-30 15:33:01 +0000522`Test Results Archive (llvm-testresults)`__
Sean Silva12159ff2013-01-20 02:19:36 +0000523 A message is automatically sent to this list by every active nightly tester
524 when it completes. As such, this list gets email several times each day,
525 making it a high volume list.
526
Tanya Lattner0d28f802015-08-05 03:51:17 +0000527 .. __: http://lists.llvm.org/pipermail/llvm-testresults/
Sean Silva9d0eb942013-01-20 02:19:42 +0000528
Sean Silvaab4997d2013-03-30 15:33:01 +0000529`LLVM Announcements List (llvm-announce)`__
Sean Silva84b296c2013-03-30 15:32:54 +0000530 This is a low volume list that provides important announcements regarding
531 LLVM. It gets email about once a month.
532
Tanya Lattner0d28f802015-08-05 03:51:17 +0000533 .. __: http://lists.llvm.org/mailman/listinfo/llvm-announce
Sean Silva84b296c2013-03-30 15:32:54 +0000534
Sean Silva01299242013-03-30 15:32:51 +0000535IRC
536---
537
538Users and developers of the LLVM project (including subprojects such as Clang)
539can be found in #llvm on `irc.oftc.net <irc://irc.oftc.net/llvm>`_.
540
541This channel has several bots.
542
543* Buildbot reporters
544
545 * llvmbb - Bot for the main LLVM buildbot master.
546 http://lab.llvm.org:8011/console
547 * bb-chapuni - An individually run buildbot master. http://bb.pgr.jp/console
548 * smooshlab - Apple's internal buildbot master.
549
550* robot - Bugzilla linker. %bug <number>
551
552* clang-bot - A `geordi <http://www.eelis.net/geordi/>`_ instance running
553 near-trunk clang instead of gcc.
554
Renato Goline433cf72016-07-20 09:38:04 +0000555Community wide proposals
556------------------------
557
558Proposals for massive changes in how the community behaves and how the work flow
559can be better.
560
561.. toctree::
562 :hidden:
563
564 CodeOfConduct
Mehdi Amini647deb82016-10-12 23:02:02 +0000565 Proposals/GitHubMove
Michael Kruse53c722d2018-10-23 19:46:29 +0000566 Proposals/TestSuite
Ayal Zaks4c4baf52017-05-29 15:36:23 +0000567 Proposals/VectorizationPlan
Renato Goline433cf72016-07-20 09:38:04 +0000568
569:doc:`CodeOfConduct`
570 Proposal to adopt a code of conduct on the LLVM social spaces (lists, events,
571 IRC, etc).
572
Mehdi Amini647deb82016-10-12 23:02:02 +0000573:doc:`Proposals/GitHubMove`
Renato Goline433cf72016-07-20 09:38:04 +0000574 Proposal to move from SVN/Git to GitHub.
575
Michael Kruse53c722d2018-10-23 19:46:29 +0000576:doc:`Proposals/TestSuite`
577 Proposals for additional benchmarks/programs for llvm's test-suite.
578
Ayal Zaks4c4baf52017-05-29 15:36:23 +0000579:doc:`Proposals/VectorizationPlan`
580 Proposal to model the process and upgrade the infrastructure of LLVM's Loop Vectorizer.
Sean Silva01299242013-03-30 15:32:51 +0000581
Daniel Dunbarfbb80412012-04-19 16:31:37 +0000582Indices and tables
583==================
584
585* :ref:`genindex`
586* :ref:`search`