minix/external/bsd/llvm/dist/llvm/docs
Lionel Sambuc 57ca7ad105 NetBSD re-synchronization of the source tree
This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
2015-12-31 17:56:59 +01:00
..
_static Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
_templates Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
_themes/llvm-theme Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
CommandGuide NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
HistoricalNotes Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
TableGen NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
tutorial NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
AliasAnalysis.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
ARM-BE-bitcastfail.png NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
ARM-BE-bitcastsuccess.png NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
ARM-BE-ld1.png NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
ARM-BE-ldr.png NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
Atomics.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
BigEndianNEON.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
BitCodeFormat.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
BlockFrequencyTerminology.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
BranchWeightMetadata.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
Bugpoint.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
CMake.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
CMakeLists.txt NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
CodeGenerator.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
CodingStandards.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
CommandLine.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
CompilerWriterInfo.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
conf.py NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
CoverageMappingFormat.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
DebuggingJITedCode.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
DeveloperPolicy.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
doxygen.cfg.in NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
doxygen.css Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
doxygen.footer NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
doxygen.header Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
doxygen.intro Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
Dummy.html Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
ExceptionHandling.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
ExtendedIntegerResults.txt Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
ExtendingLLVM.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
Extensions.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
FAQ.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
GarbageCollection.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
gcc-loops.png Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
GetElementPtr.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
GettingStarted.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
GettingStartedVS.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
GoldPlugin.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
HowToAddABuilder.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
HowToBuildOnARM.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
HowToCrossCompileLLVM.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
HowToReleaseLLVM.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
HowToSetUpLLVMStyleRTTI.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
HowToSubmitABug.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
HowToUseAttributes.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
HowToUseInstrMappings.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
InAlloca.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
index.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
LangRef.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
Lexicon.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
LinkTimeOptimization.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
linpack-pc.png Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
LLVMBuild.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
LLVMBuild.txt Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
make.bat Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
Makefile NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
Makefile.sphinx Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
MakefileGuide.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
MarkedUpDisassembly.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
MCJIT-creation.png Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
MCJIT-dyld-load.png Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
MCJIT-engine-builder.png Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
MCJIT-load-object.png Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
MCJIT-load.png Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
MCJIT-resolve-relocations.png Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
MCJITDesignAndImplementation.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
MergeFunctions.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
NVPTXUsage.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
Packaging.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
Passes.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
Phabricator.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
ProgrammersManual.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
Projects.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
R600Usage.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
re_format.7 Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
README.txt NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
ReleaseNotes.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
ReleaseProcess.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
SegmentedStacks.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
SourceLevelDebugging.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
SphinxQuickstartTemplate.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
StackMaps.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
Statepoints.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
SystemLibrary.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
TableGenFundamentals.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
TestingGuide.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
TestSuiteMakefileGuide.rst Importing netbsd clang -- pristine 2014-07-28 17:05:57 +02:00
Vectorizers.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
WritingAnLLVMBackend.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
WritingAnLLVMPass.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
yaml2obj.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01:00
YamlIO.rst NetBSD re-synchronization of the source tree 2015-12-31 17:56:59 +01: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 docs/
    make -f Makefile.sphinx
    $BROWSER _build/html/index.html

The mapping between reStructuredText files and generated documentation is
`docs/Foo.rst` <-> `_build/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/man/`.

    cd docs/
    make -f Makefile.sphinx man
    man -l _build/man/FileCheck.1

The correspondence between .rst files and man pages is
`docs/CommandGuide/Foo.rst` <-> `_build/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 reachibility of external links in the documentation can be checked by
running:

    cd docs/
    make -f Makefile.sphinx linkcheck