freebsd-nq/docs
2016-08-17 19:33:52 +00:00
..
_ocamldoc Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
_static Vendor import of llvm trunk r161861: 2012-08-15 19:34:23 +00:00
_templates Vendor import of llvm trunk r161861: 2012-08-15 19:34:23 +00:00
_themes/llvm-theme Vendor import of llvm release_32 branch r168974 (effectively, 3.2 RC2): 2012-12-02 13:10:19 +00:00
CommandGuide Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
Frontend Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
HistoricalNotes Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3): 2013-12-22 00:04:03 +00:00
TableGen Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
tutorial Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
AdvancedBuilds.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
AliasAnalysis.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
AMDGPUUsage.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
ARM-BE-bitcastfail.png Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
ARM-BE-bitcastsuccess.png Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
ARM-BE-ld1.png Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
ARM-BE-ldr.png Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
Atomics.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
BigEndianNEON.rst Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
BitCodeFormat.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
BlockFrequencyTerminology.rst Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
BranchWeightMetadata.rst Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
Bugpoint.rst Vendor import of llvm trunk r238337: 2015-05-27 18:44:32 +00:00
CMake.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
CMakeLists.txt Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
CMakePrimer.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
CodeGenerator.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
CodeOfConduct.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
CodingStandards.rst Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
CommandLine.rst Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
CompileCudaWithLLVM.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
CompilerWriterInfo.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
conf.py Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
CoverageMappingFormat.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
DebuggingJITedCode.rst Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
DeveloperPolicy.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
doxygen-mainpage.dox Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
doxygen.cfg.in Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
Dummy.html Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
ExceptionHandling.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
ExtendedIntegerResults.txt Import LLVM, at r72732. 2009-06-02 17:52:33 +00:00
ExtendingLLVM.rst Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
Extensions.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
FAQ.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
FaultMaps.rst Vendor import of llvm trunk r241361: 2015-07-05 14:21:36 +00:00
GarbageCollection.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
gcc-loops.png Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
GetElementPtr.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
GettingStarted.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
GettingStartedVS.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
GoldPlugin.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
HowToAddABuilder.rst Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
HowToBuildOnARM.rst Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
HowToCrossCompileLLVM.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
HowToReleaseLLVM.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
HowToSetUpLLVMStyleRTTI.rst Vendor import of llvm trunk r238337: 2015-05-27 18:44:32 +00:00
HowToSubmitABug.rst Vendor import of llvm RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): 2015-01-18 16:17:27 +00:00
HowToUseAttributes.rst Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
HowToUseInstrMappings.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
InAlloca.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
index.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
LangRef.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
Lexicon.rst Vendor import of llvm trunk r239412: 2015-06-09 19:06:30 +00:00
LibFuzzer.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
LinkTimeOptimization.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
linpack-pc.png Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
LLVMBuild.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
LLVMBuild.txt Vendor import of llvm trunk r154661: 2012-04-14 13:54:10 +00:00
make.bat Vendor import of llvm trunk r161861: 2012-08-15 19:34:23 +00:00
Makefile.sphinx Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
MarkedUpDisassembly.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
MCJIT-creation.png Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3): 2013-12-22 00:04:03 +00:00
MCJIT-dyld-load.png Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3): 2013-12-22 00:04:03 +00:00
MCJIT-engine-builder.png Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3): 2013-12-22 00:04:03 +00:00
MCJIT-load-object.png Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3): 2013-12-22 00:04:03 +00:00
MCJIT-load.png Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3): 2013-12-22 00:04:03 +00:00
MCJIT-resolve-relocations.png Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3): 2013-12-22 00:04:03 +00:00
MCJITDesignAndImplementation.rst Vendor import of llvm trunk r256945: 2016-01-06 20:01:02 +00:00
MergeFunctions.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
MIRLangRef.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
NVPTXUsage.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
Packaging.rst Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
Passes.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
Phabricator.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
ProgrammersManual.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
Projects.rst Import llvm 3.7.0 release (r246257). 2015-09-06 18:34:38 +00:00
re_format.7 Update llvm to r84119. 2009-10-14 17:57:32 +00:00
README.txt Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
ReleaseNotes.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
ReleaseProcess.rst Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
ReportingGuide.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
ScudoHardenedAllocator.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
SegmentedStacks.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
SourceLevelDebugging.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
SphinxQuickstartTemplate.rst Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
StackMaps.rst Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
Statepoints.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
SystemLibrary.rst Vendor import of llvm trunk r178860: 2013-04-08 18:41:23 +00:00
TableGenFundamentals.rst Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release): 2014-11-24 09:08:18 +00:00
TestingGuide.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
TestSuiteMakefileGuide.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
TypeMetadata.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +00:00
Vectorizers.rst Vendor import of llvm trunk r238337: 2015-05-27 18:44:32 +00:00
WritingAnLLVMBackend.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
WritingAnLLVMPass.rst Vendor import of llvm release_39 branch r278877: 2016-08-17 19:33:52 +00:00
yaml2obj.rst Vendor import of llvm trunk r256633: 2015-12-30 11:46:15 +00:00
YamlIO.rst Vendor import of llvm release_39 branch r276489: 2016-07-23 20:41:05 +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