llvm-c166/llvm/docs
Kirill Zhumarin 9070473803 Merge LLVM 23.1.2
# Conflicts:
#	clang-tools-extra/docs/ReleaseNotes.rst
#	clang/test/Analysis/string-search-modeling.c
2026-09-24 22:35:35 +03:00
..
_ocamldoc
_static [docs] de-highlight code snippet errors in dark mode (#212894) 2026-07-29 17:14:39 -07:00
_templates
_themes/llvm-theme
AMDGPU
AMDGPUDwarfExtensionAllowLocationDescriptionOnTheDwarfExpressionStack
CommandGuide
DependenceGraphs
DirectX
Frontend
GlobalISel
HistoricalNotes
PDB [docs] Finish MyST migration for PDB, DirectX, and GlobalISel docs (#217159) 2026-08-24 17:23:07 -07:00
Proposals [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
RISCV [docs] Finish MyST migration for selected LLVM docs (#214618) 2026-08-10 16:20:00 -07:00
TableGen
tutorial [docs] Finish MyST migration for tutorial docs (#217160) 2026-08-19 11:57:52 -07:00
AArch64SME.md
AddingConstrainedIntrinsics.md [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
AdminTasks.md
AdvancedBuilds.md
AIToolPolicy.md [docs] Add exception to AI tool policy for Bazel build fixer (#183408) 2026-03-05 13:53:44 -08:00
AliasAnalysis.md
AlignedBundling.rst
AMDGPUAsyncOperations.md [Docs][AMDGPU] Explain completion of async operations (#212756) 2026-07-30 14:05:00 +05:30
AMDGPUDMAOperations.md [Docs][AMDGPU] Eliminate incorrect use of double backticks [NFC] (#212343) 2026-07-27 20:47:23 +00:00
AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
AMDGPUExecutionSynchronization.md
AMDGPUInstructionNotation.rst
AMDGPUInstructionSyntax.rst
AMDGPUMemoryModel.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
AMDGPUModifierSyntax.rst
AMDGPUOperandSyntax.rst
AMDGPUUsage.rst
ARM-BE-bitcastfail.png
ARM-BE-bitcastsuccess.png
ARM-BE-ld1.png
ARM-BE-ldr.png
AssignmentTracking.md
Atomics.md
Benchmarking.md
BigEndianNEON.md
BitCodeFormat.md
BlockFrequencyTerminology.rst
BranchWeightMetadata.rst
BugLifeCycle.rst [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
buildbot_worker_contact.png
BuildingADistribution.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
C166Usage.md [C166] Complete freestanding ABI support 2026-09-12 18:33:59 +03:00
CallGraphSection.md [NFC][llvm] Update call graph section's name. (#163429) 2025-10-15 07:52:54 -07:00
CFIVerify.md [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
CIBestPractices.rst
CMake.md [docs] Update docs for CMake LLVM_LIT_TOOLS_DIR to Git for Windows (#217003) 2026-08-20 10:48:10 +01:00
CMakeLists.txt
CMakePrimer.md [docs] Finish MyST migration for selected LLVM docs (#214618) 2026-08-10 16:20:00 -07:00
CodeGenerator.md
CodeOfConduct.md
CodeReview.rst
CodingStandards.md
CommandLine.md
CompileCudaWithLLVM.md
CompilerWriterInfo.md
conf.py
ContentAddressableStorage.md
Contributing.md
convergence-both-diverged-nested.png
convergence-closed-path.png
convergence-divergent-inside.png [LLVM] Remove executable permission from some non-executable files (#93803) 2024-05-30 12:35:10 +01:00
convergence-divergent-outside.png
convergence-natural-loop.png [LLVM] Remove executable permission from some non-executable files (#93803) 2024-05-30 12:35:10 +01:00
ConvergenceAndUniformity.rst
ConvergentOperations.rst
Coroutines.md
CoverageMappingFormat.md
cycle-1.png
cycle-2.png
cycle-3.png
CycleTerminology.md
DebuggingJITedCode.md [docs] Rewrite 19 LLVM docs from reST to markdown (#208798) 2026-07-18 04:23:20 +00:00
DebuggingLLVM.md
DeveloperPolicy.md
DirectXUsage.md
DiscourseMigrationGuide.md [www][docs] Remove last mentions of IRC (#139076) 2025-05-08 09:40:33 -04:00
Docker.md
doxygen-mainpage.dox
doxygen.cfg.in [docs] update CI to use latest release of doxygen (#202420) 2026-06-10 10:25:33 -04:00
DTLTO.md
DynamicDebugging.md
DynDbgObjLayout.png
epilogue-vectorization-cfg.png
ExceptionHandling.md
ExtendedIntegerResults.txt
ExtendingLLVM.md
Extensions.md
FAQ.md
FatLTO.md
FaultMaps.rst
FuzzingLLVM.rst
GarbageCollection.md [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
gcc-loops.png
GetElementPtr.rst
GettingInvolved.md
GettingStarted.md
GettingStartedTutorials.md [docs] Migrate 22 popular LLVM docs to MyST (#201244) 2026-06-22 16:02:50 -07:00
GettingStartedVS.md
GitBisecting.rst [docs] Point to git bisect --first-parent (#171728) 2025-12-12 14:24:49 -08:00
GitHub.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
GitHubActionsRunners.rst
GitRepositoryPolicy.md
GoldPlugin.md
GwpAsan.rst
HowToAddABuilder.rst
HowToBuildOnARM.md [docs] Rewrite 20 selected rst LLVM docs to Markdown (#205923) 2026-07-02 16:28:49 -07:00
HowToBuildWindowsItaniumPrograms.md
HowToBuildWithPGO.md
HowToCrossCompileBuiltinsOnArm.md
HowToCrossCompileLLVM.md
HowToReleaseLLVM.rst
HowToSetUpLLVMStyleRTTI.rst [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
HowToSubmitABug.rst [LLVM][Docs] Remove bugpoint references 2026-08-05 17:52:45 -07:00
HowToUpdateDebugInfo.md
HowToUseAttributes.md
HowToUseInstrMappings.rst
InAlloca.rst
index.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
InstCombineContributorGuide.md
InstrProfileFormat.md
InstrRefDebugInfo.md [docs] Rename 22 popular LLVM docs .rst -> .md (#201243) 2026-06-22 16:00:56 -07:00
Instrumentor.md
InterfaceExportAnnotations.rst
JITLink.md
KernelInfo.rst
KeyInstructionsDebugInfo.md [Docs] Fixes indents for InstrRefDebugInfo and KeyInstructionsDebugInfo (#194532) 2026-04-28 06:44:47 -07:00
LangRef.md [C166] Add initial target support 2026-08-28 04:10:12 +03:00
Lexicon.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
LFI.md
LibFuzzer.md
LinkTimeOptimization.md
linpack-pc.png
llvm_telemetry_design.png
loop-guard.svg
loop-irreducible.svg
loop-merge.svg
loop-nested.svg
loop-nonmaximal.svg
loop-separate.svg
loop-single.svg
loop-terminology-guarded-loop.png
loop-terminology-initial-loop.png
loop-terminology-rotated-loop.png
loop-terminology.svg [docs] Revise loop terminology reference. 2020-10-05 10:28:04 -05:00
LoopFusion.rst
LoopTerminology.md
make.bat
MarkdownQuickstartTemplate.md
MarkedUpDisassembly.rst
MCJIT-creation.png
MCJIT-dyld-load.png
MCJIT-engine-builder.png
MCJIT-load-object.png
MCJIT-load.png
MCJIT-resolve-relocations.png
MCJITDesignAndImplementation.md
MeetupGuidelines.rst
MemoryModelRelaxationAnnotations.rst
MemorySSA.md [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
MemProf.md
MemTagSanitizer.rst
MergeFunctions.md
MIRLangRef.md
MisExpect.md [docs] Finish MyST migration for selected LLVM docs (#214618) 2026-08-10 16:20:00 -07:00
MLGO.rst
MyFirstTypoFix.md [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
NewPassManager.md
NVPTXUsage.md [LLVM][NVPTX] Add support for TMA prefetch Rubin extensions (#217630) 2026-08-26 13:47:05 +05:30
OpaquePointers.md
OptBisect.md [docs] Finish MyST migration for selected LLVM docs (#214618) 2026-08-10 16:20:00 -07:00
ORCv2.md [ORC] Add AutoImportGenerator for COFF dllimport auto-import (#203914) 2026-08-02 22:39:46 +10:00
Passes.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
PCSectionsMetadata.rst
PointerAuth.md
ProgrammersManual.md
ProjectGovernance.md
Projects.rst [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
QualGroup.rst
re_format.7
README.txt
Reference.md
ReleaseNotes.md Merge LLVM 23.1.2 2026-09-24 22:35:35 +03:00
ReleaseNotesTemplate.txt
ReleaseProcess.rst [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
Remarks.md
RemoveDIsDebugInfo.md
ReportingGuide.md
requirements.txt
requirements.txt.in
ResponseGuide.md [docs] Finish MyST migration for selected LLVM docs (#214618) 2026-08-10 16:20:00 -07:00
RFCProcess.md
RISCVUsage.md
SandboxIR.md
SandboxVectorizer.md
ScudoHardenedAllocator.rst [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
Security.rst
SecurityTransparencyReports.rst
SegmentedStacks.rst
SourceLevelDebugging.md
speculative_load_hardening_microbenchmarks.png
SpeculativeLoadHardening.md
SphinxQuickstartTemplate.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
SPIRVUsage.md [SPIRV] Add support for the SPV_EXT_long_vector extension (#210279) 2026-08-27 10:46:18 +01:00
StackMaps.rst [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
StackSafetyAnalysis.md
Statepoints.rst
SupportLibrary.md
SupportPolicy.rst
SymbolizerMarkupFormat.md
SystemLibrary.rst
TableGenFundamentals.md
Telemetry.md
TestingGuide.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
TestSuiteGuide.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
TransformMetadata.rst
TypeMetadata.rst
UndefinedBehavior.rst
UserGuides.md [C166] Add initial target support 2026-08-28 04:10:12 +03:00
VectorizationPlan.rst
Vectorizers.md
vplan-early-exit-lowered.dot
vplan-early-exit-lowered.png [VPlan] Optimize BranchOnTwoConds to chain of 2 simple branches. (#174016) 2026-01-13 20:14:15 +00:00
vplan-early-exit.dot
vplan-early-exit.png
vplan-scope.png
vplan-transform-pipeline.png
WritingAnLLVMBackend.md
WritingAnLLVMNewPMPass.md
WritingAnLLVMPass.md [docs] Prefer colon fences to delineate blocks containing markup (#214921) 2026-08-08 14:31:46 -07:00
XRay.rst [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
XRayExample.rst [Docs] Reland Furo theme for LLVM docs (#211993) 2026-07-27 08:33:03 -07:00
XRayFDRFormat.rst
yaml2obj.md
YamlIO.rst

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.md` 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 llvm/docs/
    sphinx-build -b linkcheck . _build/lintcheck/
    # report will be generated in _build/lintcheck/output.txt

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

Install doxygen <https://www.doxygen.nl/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