llvm-project/llvm/docs
Nikita Popov 840bb72543 [lldb] Avoid pointer element type accesses 2022-03-24 13:09:23 +01:00
..
AMDGPU [AMDGPU][GFX9][DOC][NFC] Corrected description of registers available via getreg/setreg 2022-02-04 17:55:32 +03:00
AMDGPUDwarfExtensionAllowLocationDescriptionOnTheDwarfExpressionStack
CommandGuide Fix llvm-strip --only-keep-debug documentation for ELF 2022-03-18 06:49:05 +00:00
DependenceGraphs
Frontend [docs] fix typo 2022-02-20 18:43:30 +00:00
GlobalISel
HistoricalNotes
PDB [PDB] Add char8_t type 2022-03-01 13:39:51 -08:00
Proposals Move LLVM Proposal to doc directory, create index 2022-01-29 00:29:31 +00:00
TableGen
_ocamldoc
_static
_templates
_themes/llvm-theme
tutorial Replace links to archived mailing lists by links to Discourse forums 2022-03-23 10:10:20 -04:00
AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst
AMDGPUInstructionNotation.rst
AMDGPUInstructionSyntax.rst
AMDGPUModifierSyntax.rst
AMDGPUOperandSyntax.rst
AMDGPUUsage.rst [AMDGPU][DOC][NFC] Added links to MI200 documentation 2022-03-18 13:17:42 +03:00
ARM-BE-bitcastfail.png
ARM-BE-bitcastsuccess.png
ARM-BE-ld1.png
ARM-BE-ldr.png
AddingConstrainedIntrinsics.rst
AdvancedBuilds.rst
AliasAnalysis.rst
Atomics.rst
Benchmarking.rst
BigEndianNEON.rst
BitCodeFormat.rst [SanitizerBounds] Add support for NoSanitizeBounds function 2022-03-01 18:47:02 +01:00
BlockFrequencyTerminology.rst
BranchWeightMetadata.rst
BugLifeCycle.rst Update the Bug Life Cycle docs for the switch to GitHub issues 2022-01-26 15:55:36 -05:00
Bugpoint.rst
BugpointRedesign.md
BuildingADistribution.rst Update all LLVM documentation mentioning runtimes in LLVM_ENABLE_PROJECTS 2022-02-10 15:05:23 -05:00
CFIVerify.rst
CMake.rst Add a cmake flag to turn `llvm_unreachable()` into builtin_trap() when assertions are disabled 2022-03-18 19:24:14 +00:00
CMakeLists.txt
CMakePrimer.rst
CodeGenerator.rst [docs] Update Prolog/Epilog Code Insertion docs to show it's still incomplete 2022-01-31 15:25:46 -05:00
CodeOfConduct.rst
CodeReview.rst
CodingStandards.rst
CommandLine.rst
CompileCudaWithLLVM.rst
CompilerWriterInfo.rst [LoongArch 1/6] Add triples loongarch{32,64} for the upcoming LoongArch target 2022-02-10 10:23:34 +00:00
Contributing.rst Fix LLVM sphinx build 2022-03-23 10:17:47 -04:00
Coroutines.rst
CoverageMappingFormat.rst
CycleTerminology.rst
DebuggingJITedCode.rst
DeveloperPolicy.rst Update references to the mailing list to reference Discourse. Also update references to LLVM Bugzilla as we have moved to GitHub issues. 2022-03-04 14:27:50 -08:00
DiscourseMigrationGuide.md Update status on migration again. Add note about issues with reply by email from emails pre-migration. 2022-02-01 22:25:31 -08:00
Docker.rst [Dockerfile] Upgrade debian base image to version 10 2022-03-23 15:32:15 +00:00
ExceptionHandling.rst
ExtendedIntegerResults.txt
ExtendingLLVM.rst Replace links to archived mailing lists by links to Discourse forums 2022-03-23 10:10:20 -04:00
Extensions.rst
FAQ.rst
FaultMaps.rst
FuzzingLLVM.rst
GarbageCollection.rst
GetElementPtr.rst
GettingInvolved.rst Update my office hours 2022-03-24 09:56:43 +01:00
GettingStarted.rst [docs] Fix missing space in the GettingStarted documentation 2022-02-11 09:17:37 -05:00
GettingStartedTutorials.rst
GettingStartedVS.rst Raise the minimum Visual Studio version to VS2019 2022-01-29 10:56:41 +00:00
GitBisecting.rst
GitHub.rst docs: Update instructions for requesting backports to the release branches 2022-03-08 16:28:02 -08:00
GitRepositoryPolicy.md
GoldPlugin.rst
GwpAsan.rst
HowToAddABuilder.rst
HowToBuildOnARM.rst
HowToBuildWindowsItaniumPrograms.rst
HowToBuildWithPGO.rst
HowToCrossCompileBuiltinsOnArm.rst
HowToCrossCompileLLVM.rst [docs] HowToCrossCompileLLVM.rst: update cmake options 2022-02-19 20:37:12 +08:00
HowToReleaseLLVM.rst docs: Update instructions for requesting backports to the release branches 2022-03-08 16:28:02 -08:00
HowToSetUpLLVMStyleRTTI.rst
HowToSubmitABug.rst
HowToUpdateDebugInfo.rst
HowToUseAttributes.rst
HowToUseInstrMappings.rst
InAlloca.rst
JITLink.rst
LangRef.rst [Inline asm] Fix mangle problem when variable used in inline asm. 2022-03-24 09:41:23 +08:00
Lexicon.rst
LibFuzzer.rst [libfuzzer] improve introductory sentence 2022-03-15 17:19:20 -07:00
LinkTimeOptimization.rst
LoopTerminology.rst [docs] Replace `opt -analyze` with better alternatives. 2022-02-10 15:38:31 -08:00
MCJIT-creation.png
MCJIT-dyld-load.png
MCJIT-engine-builder.png
MCJIT-load-object.png
MCJIT-load.png
MCJIT-resolve-relocations.png
MCJITDesignAndImplementation.rst
MIRLangRef.rst
MarkdownQuickstartTemplate.md
MarkedUpDisassembly.rst
MeetupGuidelines.rst
MemTagSanitizer.rst
MemorySSA.rst [Docs] Fix reference (NFC) 2022-03-21 10:06:27 +01:00
MergeFunctions.rst
MyFirstTypoFix.rst
NVPTXUsage.rst
NewPassManager.rst [docs][NewPM] Remove buildDefaultAAPipeline() in example 2022-02-18 10:43:26 -08:00
ORCv2.rst
OpaquePointers.rst [lldb] Avoid pointer element type accesses 2022-03-24 13:09:23 +01:00
OptBisect.rst
Packaging.rst
Passes.rst Reland "Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO" 2022-03-23 18:36:55 -07:00
Phabricator.rst
Phabricator_premerge_results.png
Phabricator_premerge_unit_tests.png
PointerAuth.md [IR] Define "ptrauth" operand bundle. 2022-02-14 11:27:35 -08:00
ProgrammersManual.rst [docs] There are more than three bit storage containers. 2022-01-25 10:09:18 +00:00
Projects.rst
README.txt
Reference.rst Add security group 2021 transparency report. 2022-01-21 15:43:17 +01:00
ReleaseNotes.rst [RISCV] Mention Zvfh extension in release notes. NFC 2022-03-17 10:12:50 -07:00
ReleaseProcess.rst
Remarks.rst
ReportingGuide.rst
ScudoHardenedAllocator.rst
Security.rst Update references to the mailing lists that have moved to Discourse. 2022-02-21 18:58:48 -08:00
SecurityTransparencyReports.rst Add security group 2021 transparency report. 2022-01-21 15:43:17 +01:00
SegmentedStacks.rst
SourceLevelDebugging.rst Fix build broken by missing empty line in SourceLevelDebugging.rst 2022-02-11 15:19:07 -05:00
SpeculativeLoadHardening.md
SphinxQuickstartTemplate.rst
StackMaps.rst
StackSafetyAnalysis.rst
Statepoints.rst Update references to the mailing lists that have moved to Discourse. 2022-02-21 18:58:48 -08:00
SupportLibrary.rst
SupportPolicy.rst Update references to the mailing lists that have moved to Discourse. 2022-02-21 18:58:48 -08:00
SystemLibrary.rst
TableGenFundamentals.rst
TestSuiteGuide.md
TestSuiteMakefileGuide.rst
TestingGuide.rst [test] Add lit helper for windows paths 2022-03-14 20:05:55 -07:00
TransformMetadata.rst
TypeMetadata.rst
UserGuides.rst
Vectorizers.rst
WritingAnLLVMBackend.rst
WritingAnLLVMNewPMPass.rst
WritingAnLLVMPass.rst
XRay.rst
XRayExample.rst
XRayFDRFormat.rst
YamlIO.rst [yamlio] Allow parsing an entire mapping as an enumeration 2022-03-14 04:41:40 +00:00
buildbot_worker_contact.png
conf.py [docs] Remove hard-coded version numbers from sphinx configs 2022-02-01 23:14:12 -08:00
cycle-1.png
cycle-2.png
cycle-3.png
doxygen-mainpage.dox
doxygen.cfg.in
epilogue-vectorization-cfg.png
gcc-loops.png
index.rst Update references to the mailing lists that have moved to Discourse. 2022-02-21 18:58:48 -08:00
linpack-pc.png
llvm-objdump.1
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
make.bat
re_format.7
speculative_load_hardening_microbenchmarks.png
yaml2obj.rst

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 <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 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