llvm-capstone/llvm/docs
2022-05-10 07:48:56 -05:00
..
_ocamldoc
_static [docs] Add Loop Opt WG meeting ics. 2022-04-04 20:07:51 -05:00
_templates
_themes/llvm-theme
AMDGPU [AMDGPU][DOC][NFC] Updated GFX10 assembler syntax description 2022-04-12 15:18:44 +03:00
AMDGPUDwarfExtensionAllowLocationDescriptionOnTheDwarfExpressionStack
CommandGuide Fix "the the" typo in documentation and user facing strings 2022-05-05 17:52:08 +02:00
DependenceGraphs
Frontend [docs] fix typo 2022-02-20 18:43:30 +00:00
GlobalISel GlobalISel: Trivial documentation and comment fixes 2022-05-10 07:48:56 -05:00
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 [Docs] Fix IR and TableGen grammar inconsistencies 2022-01-13 11:55:13 +01:00
tutorial [docs] Fix Kaleidoscope code example 2022-04-06 10:41:10 +01:00
AddingConstrainedIntrinsics.rst
AdvancedBuilds.rst [CMake] Make omitting CMAKE_BUILD_TYPE an error 2022-05-04 14:01:33 +02:00
AliasAnalysis.rst
AMDGPUDwarfExtensionsForHeterogeneousDebugging.rst [AMDGPU][NFC] Add DWARF extension support for SIMD execution 2022-01-18 17:36:39 +00:00
AMDGPUInstructionNotation.rst
AMDGPUInstructionSyntax.rst [AMDGPU][DOC][NFC] Added GFX1030 assembler syntax description 2022-03-25 18:14:04 +03:00
AMDGPUModifierSyntax.rst
AMDGPUOperandSyntax.rst
AMDGPUUsage.rst Fix "the the" typo in documentation and user facing strings 2022-05-05 17:52:08 +02:00
ARM-BE-bitcastfail.png
ARM-BE-bitcastsuccess.png
ARM-BE-ld1.png
ARM-BE-ldr.png
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 Fix "the the" typo in documentation and user facing strings 2022-05-05 17:52:08 +02:00
Bugpoint.rst
BugpointRedesign.md
buildbot_worker_contact.png
BuildingADistribution.rst [cmake] Loosen multi-distribution restrictions 2022-04-13 20:33:28 -07:00
CFIVerify.rst
CMake.rst [docs] Improve documentation around CMAKE_BUILD_TYPE 2022-05-04 11:23:45 +02:00
CMakeLists.txt
CMakePrimer.rst
CodeGenerator.rst [docs] Fix typos in the 'CodeGenerator' doc 2022-04-26 21:47:12 -07:00
CodeOfConduct.rst Add transparency report. 2022-05-02 16:29:38 -07:00
CodeReview.rst
CodingStandards.rst Fix "the the" typo in documentation and user facing strings 2022-05-05 17:52:08 +02:00
CommandLine.rst
CompileCudaWithLLVM.rst
CompilerWriterInfo.rst [SPIR-V](1/6) Add stub for SPIRV backend 2022-04-20 01:10:25 +02:00
conf.py [docs] Remove hard-coded version numbers from sphinx configs 2022-02-01 23:14:12 -08:00
Contributing.rst Fix LLVM sphinx build 2022-03-23 10:17:47 -04:00
Coroutines.rst [Coroutines] Offering llvm.coro.align intrinsic 2022-01-19 09:52:45 +08:00
CoverageMappingFormat.rst
cycle-1.png
cycle-2.png
cycle-3.png
CycleTerminology.rst
DebuggingJITedCode.rst
DeveloperPolicy.rst [DeveloperPolicy] Add invitation link for commit access. 2022-04-21 12:44:59 -07: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
doxygen-mainpage.dox
doxygen.cfg.in
epilogue-vectorization-cfg.png
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 [lldb] Add a fuzzer for target creation 2022-03-25 09:34:00 -07:00
GarbageCollection.rst
gcc-loops.png
GetElementPtr.rst
GettingInvolved.rst [Docs] Added my office hours. 2022-05-09 17:39:41 +01:00
GettingStarted.rst [CMake] Make omitting CMAKE_BUILD_TYPE an error 2022-05-04 14:01:33 +02: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 [CMake] Make omitting CMAKE_BUILD_TYPE an error 2022-05-04 14:01:33 +02: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 docs: update some bug tracker references (NFC) 2022-01-10 15:59:08 -08:00
HowToUpdateDebugInfo.rst [Debugify] Limit number of processed functions for original mode 2022-04-21 13:58:17 +02:00
HowToUseAttributes.rst
HowToUseInstrMappings.rst
InAlloca.rst
index.rst Update references to the mailing lists that have moved to Discourse. 2022-02-21 18:58:48 -08:00
JITLink.rst
LangRef.rst Minor correction in bitreverse intrinsic semantics 2022-05-03 11:41:10 -07:00
Lexicon.rst [docs][Lexicon] Add new explanation for some shortcomings(WPD, CFI) for lexicon 2022-03-28 12:46:28 +08:00
LibFuzzer.rst [libfuzzer] improve introductory sentence 2022-03-15 17:19:20 -07:00
LinkTimeOptimization.rst
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
LoopTerminology.rst [docs] Update LoopTerminology. 2022-03-29 23:26:18 -05:00
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.rst
MeetupGuidelines.rst
MemorySSA.rst [Docs] Fix reference (NFC) 2022-03-21 10:06:27 +01:00
MemTagSanitizer.rst
MergeFunctions.rst
MIRLangRef.rst
MisExpect.rst [misexpect] Re-implement MisExpect Diagnostics 2022-04-19 21:23:48 +00:00
MyFirstTypoFix.rst
NewPassManager.rst [docs] Mention that we are in the process of removing the legacy PM for the optimization pipeline 2022-04-12 10:47:58 -07:00
NVPTXUsage.rst
OpaquePointers.rst [Docs] Clarify CLANG_ENABLE_OPAQUE_POINTERS behavior (NFC) 2022-05-10 10:02:01 +02:00
OptBisect.rst
ORCv2.rst [docs][ORC] Fix RST error in dfffb7df24. 2022-04-12 16:06:11 -07:00
Packaging.rst
Passes.rst Reland "Lower @llvm.global_dtors using __cxa_atexit on MachO" 2022-03-23 18:36:55 -07:00
Phabricator_premerge_results.png
Phabricator_premerge_unit_tests.png
Phabricator.rst Correct a minor point with the Phabricator docs 2022-03-28 07:15:09 -04:00
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
re_format.7
README.txt
Reference.rst Add security group 2021 transparency report. 2022-01-21 15:43:17 +01:00
ReleaseNotes.rst [CMake] Make omitting CMAKE_BUILD_TYPE an error 2022-05-04 14:01:33 +02:00
ReleaseProcess.rst
Remarks.rst
ReportingGuide.rst Consistently use the same apostrophe in these docs. 2022-04-26 09:29:44 -07:00
ResponseGuide.rst Consistently use the same apostrophe in these docs. 2022-04-26 09:29:44 -07:00
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 [DebugInfo] Add a TargetFuncName field in DISubprogram for 2022-04-15 16:38:23 -04:00
speculative_load_hardening_microbenchmarks.png
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
TestingGuide.rst [lit] Support %if ... %else syntax for RUN lines 2022-04-27 20:29:08 +03:00
TestSuiteGuide.md [CMake] Make omitting CMAKE_BUILD_TYPE an error 2022-05-04 14:01:33 +02:00
TestSuiteMakefileGuide.rst
TransformMetadata.rst
TypeMetadata.rst
UserGuides.rst Provide the complete response and reporting Code of Conduct documentation. Remove the word draft from all documents, add information about the CoC committee expectations and add a place for transparency reports. 2022-04-25 23:03:44 -07:00
Vectorizers.rst
WritingAnLLVMBackend.rst
WritingAnLLVMNewPMPass.rst
WritingAnLLVMPass.rst
XRay.rst
XRayExample.rst
XRayFDRFormat.rst
yaml2obj.rst
YamlIO.rst [yamlio] Allow parsing an entire mapping as an enumeration 2022-03-14 04:41:40 +00:00

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