Name Last Update
..
AMDGPU Loading commit data...
CommandGuide Loading commit data...
DependenceGraphs Loading commit data...
Frontend Loading commit data...
GlobalISel Loading commit data...
HistoricalNotes Loading commit data...
PDB Loading commit data...
Proposals Loading commit data...
TableGen Loading commit data...
_ocamldoc Loading commit data...
_static Loading commit data...
_templates Loading commit data...
_themes/llvm-theme Loading commit data...
tutorial Loading commit data...
AMDGPUDwarfProposalForHeterogeneousDebugging.rst Loading commit data...
AMDGPUInstructionNotation.rst Loading commit data...
AMDGPUInstructionSyntax.rst Loading commit data...
AMDGPUModifierSyntax.rst Loading commit data...
AMDGPUOperandSyntax.rst Loading commit data...
AMDGPUUsage.rst Loading commit data...
ARM-BE-bitcastfail.png Loading commit data...
ARM-BE-bitcastsuccess.png Loading commit data...
ARM-BE-ld1.png Loading commit data...
ARM-BE-ldr.png Loading commit data...
AddingConstrainedIntrinsics.rst Loading commit data...
AdvancedBuilds.rst Loading commit data...
AliasAnalysis.rst Loading commit data...
Atomics.rst Loading commit data...
Benchmarking.rst Loading commit data...
BigEndianNEON.rst Loading commit data...
BitCodeFormat.rst Loading commit data...
BlockFrequencyTerminology.rst Loading commit data...
BranchWeightMetadata.rst Loading commit data...
BugLifeCycle.rst Loading commit data...
Bugpoint.rst Loading commit data...
BugpointRedesign.md Loading commit data...
BuildingADistribution.rst Loading commit data...
CFIVerify.rst Loading commit data...
CMake.rst Loading commit data...
CMakeLists.txt Loading commit data...
CMakePrimer.rst Loading commit data...
CodeGenerator.rst Loading commit data...
CodeOfConduct.rst Loading commit data...
CodeReview.rst Loading commit data...
CodingStandards.rst Loading commit data...
CommandLine.rst Loading commit data...
CompileCudaWithLLVM.rst Loading commit data...
CompilerWriterInfo.rst Loading commit data...
Contributing.rst Loading commit data...
Coroutines.rst Loading commit data...
CoverageMappingFormat.rst Loading commit data...
DebuggingJITedCode.rst Loading commit data...
DeveloperPolicy.rst Loading commit data...
Docker.rst Loading commit data...
ExceptionHandling.rst Loading commit data...
ExtendedIntegerResults.txt Loading commit data...
ExtendingLLVM.rst Loading commit data...
Extensions.rst Loading commit data...
FAQ.rst Loading commit data...
FaultMaps.rst Loading commit data...
FuzzingLLVM.rst Loading commit data...
GarbageCollection.rst Loading commit data...
GetElementPtr.rst Loading commit data...
GettingInvolved.rst Loading commit data...
GettingStarted.rst Loading commit data...
GettingStartedTutorials.rst Loading commit data...
GettingStartedVS.rst Loading commit data...
GitBisecting.rst Loading commit data...
GoldPlugin.rst Loading commit data...
GwpAsan.rst Loading commit data...
HowToAddABuilder.rst Loading commit data...
HowToBuildOnARM.rst Loading commit data...
HowToBuildWithPGO.rst Loading commit data...
HowToCrossCompileBuiltinsOnArm.rst Loading commit data...
HowToCrossCompileLLVM.rst Loading commit data...
HowToReleaseLLVM.rst Loading commit data...
HowToSetUpLLVMStyleRTTI.rst Loading commit data...
HowToSubmitABug.rst Loading commit data...
HowToUpdateDebugInfo.rst Loading commit data...
HowToUseAttributes.rst Loading commit data...
HowToUseInstrMappings.rst Loading commit data...
InAlloca.rst Loading commit data...
LLVMBuild.rst Loading commit data...
LLVMBuild.txt Loading commit data...
LangRef.rst Loading commit data...
Lexicon.rst Loading commit data...
LibFuzzer.rst Loading commit data...
LinkTimeOptimization.rst Loading commit data...
LoopTerminology.rst Loading commit data...
MCJIT-creation.png Loading commit data...
MCJIT-dyld-load.png Loading commit data...
MCJIT-engine-builder.png Loading commit data...
MCJIT-load-object.png Loading commit data...
MCJIT-load.png Loading commit data...
MCJIT-resolve-relocations.png Loading commit data...
MCJITDesignAndImplementation.rst Loading commit data...
MIRLangRef.rst Loading commit data...
Makefile.sphinx Loading commit data...
MarkdownQuickstartTemplate.md Loading commit data...
MarkedUpDisassembly.rst Loading commit data...
MeetupGuidelines.rst Loading commit data...
MemTagSanitizer.rst Loading commit data...
MemorySSA.rst Loading commit data...
MergeFunctions.rst Loading commit data...
NVPTXUsage.rst Loading commit data...
ORCv2.rst Loading commit data...
OptBisect.rst Loading commit data...
Packaging.rst Loading commit data...
Passes.rst Loading commit data...
Phabricator.rst Loading commit data...
ProgrammersManual.rst Loading commit data...
Projects.rst Loading commit data...
README.txt Loading commit data...
Reference.rst Loading commit data...
ReleaseNotes.rst Loading commit data...
ReleaseProcess.rst Loading commit data...
Remarks.rst Loading commit data...
ReportingGuide.rst Loading commit data...
ScudoHardenedAllocator.rst Loading commit data...
Security.rst Loading commit data...
SegmentedStacks.rst Loading commit data...
SourceLevelDebugging.rst Loading commit data...
SpeculativeLoadHardening.md Loading commit data...
SphinxQuickstartTemplate.rst Loading commit data...
StackMaps.rst Loading commit data...
StackSafetyAnalysis.rst Loading commit data...
Statepoints.rst Loading commit data...
SupportLibrary.rst Loading commit data...
SystemLibrary.rst Loading commit data...
TableGenFundamentals.rst Loading commit data...
TestSuiteGuide.md Loading commit data...
TestSuiteMakefileGuide.rst Loading commit data...
TestingGuide.rst Loading commit data...
TransformMetadata.rst Loading commit data...
TypeMetadata.rst Loading commit data...
UserGuides.rst Loading commit data...
Vectorizers.rst Loading commit data...
WritingAnLLVMBackend.rst Loading commit data...
WritingAnLLVMPass.rst Loading commit data...
XRay.rst Loading commit data...
XRayExample.rst Loading commit data...
XRayFDRFormat.rst Loading commit data...
YamlIO.rst Loading commit data...
conf.py Loading commit data...
doxygen-mainpage.dox Loading commit data...
doxygen.cfg.in Loading commit data...
gcc-loops.png Loading commit data...
index.rst Loading commit data...
linpack-pc.png Loading commit data...
llvm-objdump.1 Loading commit data...
loop-terminology-guarded-loop.png Loading commit data...
loop-terminology-initial-loop.png Loading commit data...
loop-terminology-rotated-loop.png Loading commit data...
make.bat Loading commit data...
re_format.7 Loading commit data...
speculative_load_hardening_microbenchmarks.png Loading commit data...
yaml2obj.rst Loading commit data...
LLVM Documentation
==================

LLVM's documentation is written in reStructuredText, a lightweight
plaintext markup language (file extension `.rst`). While the
reStructuredText documentation should be quite readable in source form, it
is mostly meant to be processed by the Sphinx documentation generation
system to create HTML pages which are hosted on <https://llvm.org/docs/> and
updated after every commit. Manpage output is also supported, see below.

If you instead would like to generate and view the HTML locally, install
Sphinx <http://sphinx-doc.org/> and then do:

    cd <build-dir>
    cmake -DLLVM_ENABLE_SPHINX=true -DSPHINX_OUTPUT_HTML=true <src-dir>
    make -j3 docs-llvm-html
    $BROWSER <build-dir>/docs//html/index.html

The mapping between reStructuredText files and generated documentation is
`docs/Foo.rst` <-> `<build-dir>/docs//html/Foo.html` <-> `https://llvm.org/docs/Foo.html`.

If you are interested in writing new documentation, you will want to read
`SphinxQuickstartTemplate.rst` which will get you writing documentation
very fast and includes examples of the most important reStructuredText
markup syntax.

Manpage Output
===============

Building the manpages is similar to building the HTML documentation. The
primary difference is to use the `man` makefile target, instead of the
default (which is `html`). Sphinx then produces the man pages in the
directory `<build-dir>/docs/man/`.

    cd <build-dir>
    cmake -DLLVM_ENABLE_SPHINX=true -DSPHINX_OUTPUT_MAN=true <src-dir>
    make -j3 docs-llvm-man
    man -l >build-dir>/docs/man/FileCheck.1

The correspondence between .rst files and man pages is
`docs/CommandGuide/Foo.rst` <-> `<build-dir>/docs//man/Foo.1`.
These .rst files are also included during HTML generation so they are also
viewable online (as noted above) at e.g.
`https://llvm.org/docs/CommandGuide/Foo.html`.

Checking links
==============

The reachability of external links in the documentation can be checked by
running:

    cd docs/
    make -f Makefile.sphinx linkcheck

Doxygen page Output
==============

Install doxygen <http://www.stack.nl/~dimitri/doxygen/download.html> and dot2tex <https://dot2tex.readthedocs.io/en/latest>.

    cd <build-dir>
    cmake -DLLVM_ENABLE_DOXYGEN=On <llvm-top-src-dir>
    make doxygen-llvm # for LLVM docs
    make doxygen-clang # for clang docs

It will generate html in

    <build-dir>/docs/doxygen/html # for LLVM docs
    <build-dir>/tools/clang/docs/doxygen/html # for clang docs