1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[docs] Update code block for compatibility with Sphinx 1.5.1

It is currently not possible to build the documentation with cmake and
the same version of Sphinx (1.5.1) used to generate the public facing
documentation on llvm.org. When code blocks cannot be parsed by
Pygments, it generates a warning which is treated as an error.

In addition to being annoying and confusing for developers, this
needlessly increases the bar for newcomers that want to get involved.

This patch removes the language specifier from the affected block. The
result is the same as when parsing fails: the block are not highlighted.

llvm-svn: 317472
This commit is contained in:
Jonas Devlieghere 2017-11-06 11:47:24 +00:00
parent 1921646036
commit 62181e158b
5 changed files with 70 additions and 70 deletions

View File

@ -122,7 +122,7 @@ CODE GENERATION OPTIONS
Choose the code model from:
.. code-block:: perl
.. code-block:: text
default: Target default code model
small: Small code model
@ -154,7 +154,7 @@ CODE GENERATION OPTIONS
Instruction schedulers available (before register allocation):
.. code-block:: perl
.. code-block:: text
=default: Best scheduler for the target
=none: No scheduling: breadth first sequencing
@ -168,7 +168,7 @@ CODE GENERATION OPTIONS
Register allocator to use (default=linearscan)
.. code-block:: perl
.. code-block:: text
=bigblock: Big-block register allocator
=linearscan: linear scan register allocator =local - local register allocator
@ -178,7 +178,7 @@ CODE GENERATION OPTIONS
Choose relocation model from:
.. code-block:: perl
.. code-block:: text
=default: Target default relocation model
=static: Non-relocatable code =pic - Fully relocatable, position independent code
@ -188,7 +188,7 @@ CODE GENERATION OPTIONS
Spiller to use (default=local)
.. code-block:: perl
.. code-block:: text
=simple: simple spiller
=local: local spiller
@ -197,7 +197,7 @@ CODE GENERATION OPTIONS
Choose style of code to emit from X86 backend:
.. code-block:: perl
.. code-block:: text
=att: Emit AT&T-style assembly
=intel: Emit Intel-style assembly

View File

@ -142,7 +142,7 @@ Symbol Type Options
Displays class definitions in the specified format.
.. code-block:: perl
.. code-block:: text
=all - Display all class members including data, constants, typedefs, functions, etc (default)
=layout - Only display members that contribute to class size.
@ -152,7 +152,7 @@ Symbol Type Options
Displays classes in the specified order.
.. code-block:: perl
.. code-block:: text
=none - Undefined / no particular sort order (default)
=name - Sort classes by name
@ -200,7 +200,7 @@ Symbol Type Options
Type of symbols to dump when -globals, -externals, or -module-syms is
specified. (default all)
.. code-block:: perl
.. code-block:: text
=thunks - Display thunk symbols
=data - Display data symbols
@ -212,7 +212,7 @@ Symbol Type Options
For symbols dumped via the -module-syms, -globals, or -externals options, sort
the results in specified order.
.. code-block:: perl
.. code-block:: text
=none - Undefined / no particular sort order
=name - Sort symbols by name

View File

@ -196,7 +196,7 @@ illegal.
In order to access the 18th integer in the array, you would need to do the
following:
.. code-block:: llvm
.. code-block:: text
%idx = getelementptr { [40 x i32]* }, { [40 x i32]* }* %, i64 0, i32 0
%arr = load [40 x i32]** %idx

View File

@ -4499,7 +4499,7 @@ source variable. DIExpressions also follow this model: A DIExpression that
doesn't have a trailing ``DW_OP_stack_value`` will describe an *address* when
combined with a concrete location.
.. code-block:: llvm
.. code-block:: text
!0 = !DIExpression(DW_OP_deref)
!1 = !DIExpression(DW_OP_plus_uconst, 3)
@ -5295,7 +5295,7 @@ It does not have any effect on non-ELF targets.
Example:
.. code-block:: llvm
.. code-block:: text
$a = comdat any
@a = global i32 1, comdat $a
@ -7724,7 +7724,7 @@ A ``fence`` instruction can also take an optional
Example:
""""""""
.. code-block:: llvm
.. code-block:: text
fence acquire ; yields void
fence syncscope("singlethread") seq_cst ; yields void

View File

@ -188,7 +188,7 @@ the variable. The third argument is a `complex expression
<LangRef.html#diexpression>`_. An `llvm.dbg.addr` intrinsic describes the
*address* of a source variable.
.. code-block:: llvm
.. code-block:: text
%i.addr = alloca i32, align 4
call void @llvm.dbg.addr(metadata i32* %i.addr, metadata !1,