1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/docs
Artem Belevich 9ae008d11e [FileCheck] Added --enable-var-scope option to enable scope for regex variables.
If `--enable-var-scope` is in effect, variables with names that
start with `$` are considered to be global. All other variables are
local. All local variables get undefined at the beginning of each
CHECK-LABEL block. Global variables are not affected by CHECK-LABEL.
This makes it easier to ensure that individual tests are not affected
by variables set in preceding tests.

Differential Revision: https://reviews.llvm.org/D30749

llvm-svn: 297396
2017-03-09 17:59:04 +00:00
..
_ocamldoc
_static Fix some typos in the doc 2016-08-28 20:29:18 +00:00
_templates
_themes/llvm-theme
CommandGuide [FileCheck] Added --enable-var-scope option to enable scope for regex variables. 2017-03-09 17:59:04 +00:00
Frontend
HistoricalNotes
PDB Add documentation for the PDB Module Info stream. 2016-11-29 22:14:56 +00:00
Proposals fix some typos in the doc 2017-01-14 11:37:01 +00:00
TableGen [X86][AVX512] Adding new LLVM TableGen backend which generates the EVEX2VEX compressing tables. 2017-03-07 08:11:19 +00:00
tutorial Remove redundant code block and update comment. 2017-03-04 14:00:44 +00:00
AdvancedBuilds.rst
AliasAnalysis.rst [Docs] Add initial MemorySSA documentation. 2016-08-17 00:17:29 +00:00
AMDGPUUsage.rst [DebugInfo] Emit address space with DW_AT_address_class attribute for pointer and reference types 2017-03-08 23:55:44 +00:00
ARM-BE-bitcastfail.png
ARM-BE-bitcastsuccess.png
ARM-BE-ld1.png
ARM-BE-ldr.png
Atomics.rst
BigEndianNEON.rst
BitCodeFormat.rst [docs] Update some obsolete information in BitCodeFormat docs. 2016-10-14 16:23:09 +00:00
BlockFrequencyTerminology.rst
BranchWeightMetadata.rst Add function importing info from samplepgo profile to the module summary. 2017-02-28 18:09:44 +00:00
Bugpoint.rst
CMake.rst [docs] Point to upstream Sphinx install instructions. 2017-01-22 03:47:49 +00:00
CMakeLists.txt [cmake] Support overriding remaining HTML doc install directories 2016-09-27 19:52:29 +00:00
CMakePrimer.rst [docs] fix cmake code-block warning 2016-07-20 09:47:09 +00:00
CodeGenerator.rst [docs] Fix typo 2017-02-09 23:02:37 +00:00
CodeOfConduct.rst
CodingStandards.rst Fix some remaining documentation references to MSVC 2013 2016-12-15 19:08:02 +00:00
CommandLine.rst Update CommandLine.rst getRegisteredOptions example 2016-11-07 02:43:01 +00:00
CompileCudaWithLLVM.rst [Docs] Update docs to indicate that CUDA compilation is supported on Windows. 2017-01-05 16:54:28 +00:00
CompilerWriterInfo.rst [docs] fix link to AMD manuals (PR30946) 2016-11-08 16:49:24 +00:00
conf.py docs/conf.py: Suppress sphinx highlighting failure warnings 2017-02-10 00:00:22 +00:00
Coroutines.rst [coroutines] Add handling for unwind coro.ends 2017-03-07 21:00:54 +00:00
CoverageMappingFormat.rst fix some typos in the doc 2017-01-14 11:37:01 +00:00
DebuggingJITedCode.rst
DeveloperPolicy.rst Update Bugzilla URLs in docs 2017-02-17 08:26:11 +00:00
doxygen-mainpage.dox
doxygen.cfg.in [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing 2017-01-19 13:37:42 +00:00
Dummy.html
ExceptionHandling.rst [docs] Fixing Sphinx warnings to unclog the buildbot 2016-07-20 12:16:38 +00:00
ExtendedIntegerResults.txt
ExtendingLLVM.rst
Extensions.rst Make it possible to set SHF_LINK_ORDER explicitly. 2017-02-09 14:59:20 +00:00
FAQ.rst fix some typos in the doc 2016-07-28 09:28:58 +00:00
FaultMaps.rst Fix the docs build 2017-02-07 20:36:03 +00:00
GarbageCollection.rst Tidy up example of getting the pointer size. 2016-10-14 05:45:46 +00:00
gcc-loops.png
GetElementPtr.rst [docs] Fixing Sphinx warnings to unclog the buildbot 2016-07-20 12:16:38 +00:00
GettingStarted.rst [docs] Add information about how to checkout polly to getting started page 2017-02-23 14:27:07 +00:00
GettingStartedVS.rst [doc] Remove explicit CMake version requirement for MSVC 2016-11-09 01:44:42 +00:00
GlobalISel.rst [AArch64][GlobalISel] Legalize narrow scalar ops again. 2017-01-23 21:10:05 +00:00
GoldPlugin.rst Revert 'Test commit as per developer policy' 2016-11-30 08:24:43 +00:00
HowToAddABuilder.rst [docs] Document the staging buildbot 2017-02-05 21:21:23 +00:00
HowToBuildOnARM.rst
HowToCrossCompileLLVM.rst
HowToReleaseLLVM.rst Adding RELEASE_TESTERS.TXT 2016-07-21 16:46:44 +00:00
HowToSetUpLLVMStyleRTTI.rst
HowToSubmitABug.rst Update Bugzilla URLs in docs 2017-02-17 08:26:11 +00:00
HowToUseAttributes.rst
HowToUseInstrMappings.rst [docs] Fixing Sphinx warnings to unclog the buildbot 2016-07-20 12:16:38 +00:00
InAlloca.rst [docs] Fixing Sphinx warnings to unclog the buildbot 2016-07-20 12:16:38 +00:00
index.rst [PDB] Begin adding documentation for the PDB file format. 2016-11-10 19:24:21 +00:00
LangRef.rst [InstSimplify] vector div/rem with any zero element in divisor is undef 2017-03-09 16:20:52 +00:00
Lexicon.rst Update Bugzilla URLs in docs 2017-02-17 08:26:11 +00:00
LibFuzzer.rst [libFuzzer] better link for trophies 2017-01-18 00:45:02 +00:00
LinkTimeOptimization.rst [docs] Typos and whitespace fixed in LTO docs. 2016-11-29 18:00:31 +00:00
linpack-pc.png
LLVMBuild.rst Test commit. 2016-12-24 17:26:38 +00:00
LLVMBuild.txt
make.bat
Makefile.sphinx
MarkedUpDisassembly.rst [docs] Fixing Sphinx warnings to unclog the buildbot 2016-07-20 12:16:38 +00: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
MemorySSA.rst Fix some typos in the doc 2016-08-28 20:29:18 +00:00
MergeFunctions.rst [docs] Fixing Sphinx warnings to unclog the buildbot 2016-07-20 12:16:38 +00:00
MIRLangRef.rst [docs] Fixing Sphinx warnings to unclog the buildbot 2016-07-20 12:16:38 +00:00
NVPTXUsage.rst Update NVVMReflect usage doc to new idiom for adding target-specific early passes. 2017-01-27 19:44:24 +00:00
OptBisect.rst Fix doc for -opt-bisect-limit: the LTO option prefix for lld is -mllvm 2017-02-10 17:16:00 +00:00
Packaging.rst
Passes.rst
Phabricator.rst [doc] Fix minor grammatical error in Phabricator.rst 2017-01-05 13:08:14 +00:00
ProgrammersManual.rst Revert commit r296967, no typo 2017-03-05 07:46:24 +00:00
Projects.rst
re_format.7
README.txt
ReleaseNotes.rst Don't try to link to the 4.0 release notes 2017-02-09 23:03:34 +00:00
ReleaseProcess.rst
ReportingGuide.rst
ScudoHardenedAllocator.rst [docs] Documentation update for Scudo 2017-02-09 16:07:52 +00:00
SegmentedStacks.rst [docs] Fixing Sphinx warnings to unclog the buildbot 2016-07-20 12:16:38 +00:00
SourceLevelDebugging.rst [docs] Fix some typos. NFC. 2016-11-01 23:55:50 +00:00
SphinxQuickstartTemplate.rst
StackMaps.rst [Stackmap] Added callsite counts to emitted function information. 2016-09-14 20:22:03 +00:00
Statepoints.rst Update Bugzilla URLs in docs 2017-02-17 08:26:11 +00:00
SystemLibrary.rst
TableGenFundamentals.rst
TestingGuide.rst [docs] cleanup documentation on lit substitutions 2017-02-09 14:12:30 +00:00
TestSuiteMakefileGuide.rst
TypeMetadata.rst
Vectorizers.rst
WritingAnLLVMBackend.rst fix some typos in the doc 2017-01-14 11:37:01 +00:00
WritingAnLLVMPass.rst [docs] Make WritingAnLLVMPass.rst up-to-date with current state of things 2016-09-27 12:07:21 +00:00
XRay.rst [XRay][Docs] Update the XRay documentation 2017-02-28 22:01:26 +00:00
yaml2obj.rst
YamlIO.rst fix some typos in the doc 2017-01-14 11:37:01 +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 <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