Skip to content

Commit d8ea88f

Browse files
[llvm] Proofread LangRef.rst (#150042)
1 parent c9714d2 commit d8ea88f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

llvm/docs/LangRef.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ linkage:
280280
linkage are linked together, the two global arrays are appended
281281
together. This is the LLVM, typesafe, equivalent of having the
282282
system linker append together "sections" with identical names when
283-
.o files are linked.
283+
``.o`` files are linked.
284284

285-
Unfortunately this doesn't correspond to any feature in .o files, so it
285+
Unfortunately this doesn't correspond to any feature in ``.o`` files, so it
286286
can only be used for variables like ``llvm.global_ctors`` which llvm
287287
interprets specially.
288288

@@ -371,7 +371,7 @@ added in the future:
371371

372372
This calling convention supports `tail call
373373
optimization <CodeGenerator.html#tail-call-optimization>`_ but requires
374-
both the caller and callee are using it.
374+
both the caller and callee to use it.
375375
"``cc 11``" - The HiPE calling convention
376376
This calling convention has been implemented specifically for use by
377377
the `High-Performance Erlang
@@ -447,7 +447,7 @@ added in the future:
447447
R11. R11 can be used as a scratch register. Furthermore it also preserves
448448
all floating-point registers (XMMs/YMMs).
449449

450-
- On AArch64 the callee preserve all general purpose registers, except
450+
- On AArch64 the callee preserves all general purpose registers, except
451451
X0-X8 and X16-X18. Furthermore it also preserves lower 128 bits of V8-V31
452452
SIMD floating point registers. Not allowed with ``nest``.
453453

@@ -890,7 +890,7 @@ Syntax::
890890
[gc] [prefix Constant] [prologue Constant] [personality Constant]
891891
(!name !N)* { ... }
892892

893-
The argument list is a comma separated sequence of arguments where each
893+
The argument list is a comma-separated sequence of arguments where each
894894
argument is of the following form:
895895

896896
Syntax::
@@ -1011,7 +1011,7 @@ some can only be checked when producing an object file:
10111011
IFuncs
10121012
-------
10131013

1014-
IFuncs, like as aliases, don't create any new data or func. They are just a new
1014+
IFuncs, like aliases, don't create any new data or func. They are just a new
10151015
symbol that is resolved at runtime by calling a resolver function.
10161016

10171017
On ELF platforms, IFuncs are resolved by the dynamic linker at load time. On
@@ -1211,7 +1211,7 @@ Currently, only the following parameter attributes are defined:
12111211
the callee (for a return value).
12121212
``noext``
12131213
This indicates to the code generator that the parameter or return
1214-
value has the high bits undefined, as for a struct in register, and
1214+
value has the high bits undefined, as for a struct in a register, and
12151215
therefore does not need to be sign or zero extended. This is the same
12161216
as default behavior and is only actually used (by some targets) to
12171217
validate that one of the attributes is always present.
@@ -1252,7 +1252,7 @@ Currently, only the following parameter attributes are defined:
12521252
on the stack. This implies the pointer is dereferenceable up to
12531253
the storage size of the type.
12541254

1255-
It is not generally permissible to introduce a write to an
1255+
It is not generally permissible to introduce a write to a
12561256
``byref`` pointer. The pointer may have any address space and may
12571257
be read only.
12581258

@@ -1393,7 +1393,7 @@ Currently, only the following parameter attributes are defined:
13931393
storage for any other object accessible to the caller.
13941394

13951395
``captures(...)``
1396-
This attributes restrict the ways in which the callee may capture the
1396+
This attribute restricts the ways in which the callee may capture the
13971397
pointer. This is not a valid attribute for return values. This attribute
13981398
applies only to the particular copy of the pointer passed in this argument.
13991399

@@ -1615,7 +1615,7 @@ Currently, only the following parameter attributes are defined:
16151615
assigning this parameter or return value to a stack slot during calling
16161616
convention lowering. The enforcement of the specified alignment is
16171617
target-dependent, as target-specific calling convention rules may override
1618-
this value. This attribute serves the purpose of carrying language specific
1618+
this value. This attribute serves the purpose of carrying language-specific
16191619
alignment information that is not mapped to base types in the backend (for
16201620
example, over-alignment specification through language attributes).
16211621

@@ -1993,7 +1993,7 @@ For example:
19931993
``cold``
19941994
This attribute indicates that this function is rarely called. When
19951995
computing edge weights, basic blocks post-dominated by a cold
1996-
function call are also considered to be cold; and, thus, given low
1996+
function call are also considered to be cold and, thus, given a low
19971997
weight.
19981998

19991999
.. _attr_convergent:

0 commit comments

Comments
 (0)