1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

[docs][tools] Add missing "program" tags to rst files

Sphinx allows for definitions of command-line options using
`.. option <name>` and references to those options via `:option:<name>`.
However, it looks like there is no scoping of these options by default,
meaning that links can end up pointing to incorrect documents. See for
example the llvm-mca document, which contains references to -o that,
prior to this patch, pointed to a different document. What's worse is
that these links appear to be non-deterministic in which one is picked
(on my machine, some references end up pointing to opt, whereas on the
live docs, they point to llvm-dwarfdump, for example).

The fix is to add the .. program <name> tag. This essentially namespaces
the options (definitions and references) to the named program, ensuring
that the links are kept correct.

Reviwed by: andreadb

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

llvm-svn: 364538
This commit is contained in:
James Henderson 2019-06-27 13:24:46 +00:00
parent fa3dcadd10
commit f75dcd7d67
33 changed files with 71 additions and 1 deletions

View File

@ -1,6 +1,8 @@
FileCheck - Flexible pattern matching file verifier
===================================================
.. program:: FileCheck
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
bugpoint - automatic test case reduction tool
=============================================
.. program:: bugpoint
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
dsymutil - manipulate archived DWARF debug symbol files
=======================================================
.. program:: dsymutil
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
lit - LLVM Integrated Tester
============================
.. program:: lit
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llc - LLVM static compiler
==========================
.. program:: llc
SYNOPSIS
--------
@ -41,6 +43,11 @@ End-user Options
Print a summary of command line options.
.. option:: -o <filename>
Use ``<filename>`` as the output filename. See the summary above for more
details.
.. option:: -O=uint
Generate code at different optimization levels. These correspond to the

View File

@ -1,6 +1,8 @@
lli - directly execute programs from LLVM bitcode
=================================================
.. program:: lli
SYNOPSIS
--------

View File

@ -1,6 +1,7 @@
llvm-ar - LLVM archiver
=======================
.. program:: llvm-ar
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-as - LLVM assembler
========================
.. program:: llvm-as
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-bcanalyzer - LLVM bitcode analyzer
=======================================
.. program:: llvm-bcanalyzer
SYNOPSIS
--------

View File

@ -1,6 +1,7 @@
llvm-build - LLVM Project Build Utility
=======================================
.. program:: llvm-build
SYNOPSIS
--------

View File

@ -1,6 +1,7 @@
llvm-config - Print LLVM compilation options
============================================
.. program:: llvm-config
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-cov - emit coverage information
====================================
.. program:: llvm-cov
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-cxxfilt - LLVM symbol name demangler
=========================================
.. program:: llvm-cxxfilt
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-cxxmap - Mangled name remapping tool
=========================================
.. program:: llvm-cxxmap
SYNOPSIS
--------

View File

@ -1,6 +1,7 @@
llvm-diff - LLVM structural 'diff'
==================================
.. program:: llvm-diff
SYNOPSIS
--------

View File

@ -1,6 +1,7 @@
llvm-dis - LLVM disassembler
============================
.. program:: llvm-dis
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-dwarfdump - dump and verify DWARF debug information
========================================================
.. program:: llvm-dwarfdump
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-exegesis - LLVM Machine Instruction Benchmark
==================================================
.. program:: llvm-exegesis
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-extract - extract a function from an LLVM module
=====================================================
.. program:: llvm-extract
SYNOPSIS
--------

View File

@ -1,6 +1,7 @@
llvm-lib - LLVM lib.exe compatible library tool
===============================================
.. program:: llvm-lib
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-link - LLVM bitcode linker
===============================
.. program:: llvm-link
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-lipo - LLVM tool for manipulating universal binaries
=========================================================
.. program:: llvm-lipo
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-mca - LLVM Machine Code Analyzer
=====================================
.. program:: llvm-mca
SYNOPSIS
--------
@ -64,6 +66,11 @@ option specifies "``-``", then the output will also be sent to standard output.
Print a summary of command line options.
.. option:: -o <filename>
Use ``<filename>`` as the output filename. See the summary above for more
details.
.. option:: -mtriple=<target triple>
Specify a target triple string.

View File

@ -1,6 +1,8 @@
llvm-nm - list LLVM bitcode and object file's symbol table
==========================================================
.. program:: llvm-nm
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-objdump - LLVM's object file dumper
========================================
.. program:: llvm-objdump
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-pdbutil - PDB File forensics and diagnostics
=================================================
.. program:: llvm-pdbutil
.. contents::
:local:

View File

@ -1,6 +1,8 @@
llvm-profdata - Profile data tool
=================================
.. program:: llvm-profdata
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-readobj - LLVM Object Reader
=================================
.. program:: llvm-readobj
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-stress - generate random .ll files
=======================================
.. program:: llvm-stress
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
llvm-symbolizer - convert addresses into source code locations
==============================================================
.. program:: llvm-symbolizer
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
opt - LLVM optimizer
====================
.. program:: opt
SYNOPSIS
--------

View File

@ -1,6 +1,8 @@
tblgen - Target Description To C++ Code Generator
=================================================
.. program:: tblgen
SYNOPSIS
--------

View File

@ -2,6 +2,8 @@
Writing an LLVM Pass
====================
.. program:: opt
.. contents::
:local:
@ -264,7 +266,7 @@ documentation to users of :program:`opt`. Now that you have a working pass,
you would go ahead and make it do the cool transformations you want. Once you
get it all working and tested, it may become useful to find out how fast your
pass is. The :ref:`PassManager <writing-an-llvm-pass-passmanager>` provides a
nice command line option (:option:`--time-passes`) that allows you to get
nice command line option (:option:`-time-passes`) that allows you to get
information about the execution time of your pass along with the other passes
you queue up. For example: