llvm-toolchain-9/llvm/docs
Nicholas D Steeves de70270588 Use Debian-provided MathJax everywhere.
Gbp-Pq: Name 0049-Use-Debian-provided-MathJax-everywhere.patch
2022-06-27 14:58:57 +08:00
..
AMDGPU Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CommandGuide Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Frontend Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HistoricalNotes Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
PDB Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Proposals Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
TableGen Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
_ocamldoc Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
_static Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
_templates Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
_themes/llvm-theme Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
tutorial Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
AMDGPUInstructionNotation.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
AMDGPUInstructionSyntax.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
AMDGPUModifierSyntax.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
AMDGPUOperandSyntax.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
AMDGPUUsage.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ARM-BE-bitcastfail.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ARM-BE-bitcastsuccess.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ARM-BE-ld1.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ARM-BE-ldr.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
AddingConstrainedIntrinsics.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
AdvancedBuilds.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
AliasAnalysis.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Atomics.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Benchmarking.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
BigEndianNEON.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
BitCodeFormat.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
BlockFrequencyTerminology.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
BranchWeightMetadata.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
BugLifeCycle.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Bugpoint.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
BuildingADistribution.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CFIVerify.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CMake.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CMakeLists.txt Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CMakePrimer.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CodeGenerator.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CodeOfConduct.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CodingStandards.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CommandLine.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CompileCudaWithLLVM.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CompilerWriterInfo.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Contributing.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Coroutines.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
CoverageMappingFormat.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
DebuggingJITedCode.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
DeveloperPolicy.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Docker.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ExceptionHandling.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ExtendedIntegerResults.txt Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ExtendingLLVM.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Extensions.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
FAQ.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
FaultMaps.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
FuzzingLLVM.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
GarbageCollection.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
GetElementPtr.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
GettingStarted.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
GettingStartedVS.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
GlobalISel.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
GoldPlugin.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToAddABuilder.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToBuildOnARM.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToBuildWithPGO.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToCrossCompileBuiltinsOnArm.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToCrossCompileLLVM.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToReleaseLLVM.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToSetUpLLVMStyleRTTI.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToSubmitABug.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToUseAttributes.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
HowToUseInstrMappings.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
InAlloca.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
LLVMBuild.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
LLVMBuild.txt Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
LangRef.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Lexicon.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
LibFuzzer.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
LinkTimeOptimization.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MCJIT-creation.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MCJIT-dyld-load.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MCJIT-engine-builder.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MCJIT-load-object.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MCJIT-load.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MCJIT-resolve-relocations.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MCJITDesignAndImplementation.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MIRLangRef.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Makefile.sphinx Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MarkdownQuickstartTemplate.md Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MarkedUpDisassembly.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MeetupGuidelines.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MemorySSA.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
MergeFunctions.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
NVPTXUsage.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ORCv2.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
OptBisect.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Packaging.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Passes.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Phabricator.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ProgrammersManual.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Projects.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
README.txt Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ReleaseNotes.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ReleaseProcess.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Remarks.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ReportingGuide.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
ScudoHardenedAllocator.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
SegmentedStacks.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
SourceLevelDebugging.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
SpeculativeLoadHardening.md Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
SphinxQuickstartTemplate.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
StackMaps.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
StackSafetyAnalysis.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Statepoints.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
SupportLibrary.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
SystemLibrary.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
TableGenFundamentals.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
TestSuiteGuide.md Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
TestSuiteMakefileGuide.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
TestingGuide.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
TransformMetadata.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
TypeMetadata.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
Vectorizers.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
WritingAnLLVMBackend.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
WritingAnLLVMPass.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
XRay.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
XRayExample.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
XRayFDRFormat.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
YamlIO.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
conf.py Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
doxygen-mainpage.dox Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
doxygen.cfg.in Use Debian-provided MathJax everywhere. 2022-06-27 14:58:57 +08:00
gcc-loops.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
index.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
linpack-pc.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
llvm-objdump.1 Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
make.bat Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
re_format.7 Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
speculative_load_hardening_microbenchmarks.png Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00
yaml2obj.rst Import Upstream version 9.0.1 2022-06-27 14:52:34 +08:00

README.txt

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 <http://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` <-> `http://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.
`http://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