Skip to content

Commit ce7f9f9

Browse files
[llvm] Proofread *.rst (#167108)
This patch is limited to single-word replacements to fix spelling and/or grammar to ease the review process. Punctuation and markdown fixes are specifically excluded.
1 parent 2844d86 commit ce7f9f9

17 files changed

+32
-32
lines changed

llvm/docs/AMDGPUUsage.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,7 +2690,7 @@ are deprecated and should not be used.
26902690
``vendor_name_size`` and ``architecture_name_size`` are the length of the
26912691
vendor and architecture names respectively, including the NUL character.
26922692

2693-
``vendor_and_architecture_name`` contains the NUL terminates string for the
2693+
``vendor_and_architecture_name`` contains the NUL terminated string for the
26942694
vendor, immediately followed by the NUL terminated string for the
26952695
architecture.
26962696

@@ -3382,7 +3382,7 @@ location.
33823382

33833383
If the lane is inactive, but was active on entry to the subprogram, then this is
33843384
the program location in the subprogram at which execution of the lane is
3385-
conceptual positioned.
3385+
conceptually positioned.
33863386

33873387
If the lane was not active on entry to the subprogram, then this will be the
33883388
undefined location. A client debugger can check if the lane is part of a valid
@@ -4754,7 +4754,7 @@ same *vendor-name*.
47544754
"image", or "pipe". This may be
47554755
more restrictive than indicated
47564756
by ".access" to reflect what the
4757-
kernel actual does. If not
4757+
kernel actually does. If not
47584758
present then the runtime must
47594759
assume what is implied by
47604760
".access" and ".is_const" . Values
@@ -5133,7 +5133,7 @@ supported except by flat and scratch instructions in GFX9-GFX11.
51335133

51345134
The generic address space uses the hardware flat address support available in
51355135
GFX7-GFX11. This uses two fixed ranges of virtual addresses (the private and
5136-
local apertures), that are outside the range of addressible global memory, to
5136+
local apertures), that are outside the range of addressable global memory, to
51375137
map from a flat address to a private or local address.
51385138

51395139
FLAT instructions can take a flat address and access global, private (scratch)
@@ -6586,7 +6586,7 @@ Acquire memory ordering is not meaningful on store atomic instructions and is
65866586
treated as non-atomic.
65876587

65886588
Release memory ordering is not meaningful on load atomic instructions and is
6589-
treated a non-atomic.
6589+
treated as non-atomic.
65906590

65916591
Acquire-release memory ordering is not meaningful on load or store atomic
65926592
instructions and is treated as acquire and release respectively.

llvm/docs/AddingConstrainedIntrinsics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ node ``FADD`` must be ``STRICT_FADD``.
3131
Update mappings
3232
===============
3333

34-
Add new record to the mapping of instructions to constrained intrinsic and
34+
Add new record to the mapping of instructions to constrained intrinsics and
3535
DAG nodes::
3636

3737
include/llvm/IR/ConstrainedOps.def

llvm/docs/Atomics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ operations:
408408
MemoryDependencyAnalysis (which is also used by other passes like GVN).
409409

410410
* Folding a load: Any atomic load from a constant global can be constant-folded,
411-
because it cannot be observed. Similar reasoning allows sroa with
411+
because it cannot be observed. Similar reasoning allows SROA with
412412
atomic loads and stores.
413413

414414
Atomics and Codegen

llvm/docs/BranchWeightMetadata.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ The second weight is optional and corresponds to the unwind branch.
9292
If only one weight is set, then it contains the execution count of the call
9393
and used in SamplePGO mode only as described for the call instruction. If both
9494
weights are specified then the second weight contains the count of unwind branch
95-
taken and the first weights contains the execution count of the call minus
95+
taken and the first weight contains the execution count of the call minus
9696
the count of unwind branch taken. Both weights specified are used to calculate
9797
BranchProbability as for BranchInst and for SamplePGO the sum of both weights
9898
is used.
@@ -223,7 +223,7 @@ indicates that it was called 2,590 times at runtime.
223223
!1 = !{!"function_entry_count", i64 2590}
224224
225225
If "function_entry_count" has more than 2 operands, the subsequent operands are
226-
the GUID of the functions that needs to be imported by ThinLTO. This is only
226+
the GUID of the functions that need to be imported by ThinLTO. This is only
227227
set by sampling-based profile. It is needed because the sampling-based profile
228228
was collected on a binary that had already imported and inlined these functions,
229229
and we need to ensure the IR matches in the ThinLTO backends for profile

llvm/docs/CIBestPractices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ for LLVM infrastructure.
146146
Using Fully Qualified Container Names
147147
-------------------------------------
148148

149-
When referencing container images from a registry, such as in Github Actions
149+
When referencing container images from a registry, such as in GitHub Actions
150150
workflows, or in ``Dockerfile`` files used for building images, prefer fully
151151
qualified names (i.e., including the registry domain) over just the image.
152152
For example, prefer ``docker.io/ubuntu:24.04`` over ``ubuntu:24.04``. This

llvm/docs/CompileCudaWithLLVM.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CUDA installation on a handful of common Linux distributions, but in general the
3636
most reliable way to make it work is to install CUDA in a single directory from
3737
NVIDIA's `.run` package and specify its location via `--cuda-path=...` argument.
3838

39-
CUDA compilation is supported on Linux. Compilation on MacOS and Windows may or
39+
CUDA compilation is supported on Linux. Compilation on macOS and Windows may or
4040
may not work and currently have no maintainers.
4141

4242
Invoking clang
@@ -64,7 +64,7 @@ brackets as described below:
6464
y[2] = 6
6565
y[3] = 8
6666
67-
On MacOS, replace `-lcudart_static` with `-lcudart`; otherwise, you may get
67+
On macOS, replace `-lcudart_static` with `-lcudart`; otherwise, you may get
6868
"CUDA driver version is insufficient for CUDA runtime version" errors when you
6969
run your program.
7070

llvm/docs/Coroutines.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Values live across a suspend point need to be stored in the coroutine frame to
193193
be available in the continuation function. This frame is stored as a tail to the
194194
`async context`.
195195

196-
Every suspend point takes an `context projection function` argument which
196+
Every suspend point takes a `context projection function` argument which
197197
describes how-to obtain the continuations `async context` and every suspend
198198
point has an associated `resume function` denoted by the
199199
`llvm.coro.async.resume` intrinsic. The coroutine is resumed by calling this
@@ -221,7 +221,7 @@ a parameter to the `llvm.coro.suspend.async` intrinsic.
221221
ptr %resume_func_ptr,
222222
ptr %context_projection_function
223223
224-
The frontend should provide a `async function pointer` struct associated with
224+
The frontend should provide an `async function pointer` struct associated with
225225
each async coroutine by `llvm.coro.id.async`'s argument. The initial size and
226226
alignment of the `async context` must be provided as arguments to the
227227
`llvm.coro.id.async` intrinsic. Lowering will update the size entry with the
@@ -314,7 +314,7 @@ coroutine handle. The second parameter of `coro.begin` is given a block of memor
314314
to be used if the coroutine frame needs to be allocated dynamically.
315315

316316
The `coro.id`_ intrinsic serves as coroutine identity useful in cases when the
317-
`coro.begin`_ intrinsic get duplicated by optimization passes such as
317+
`coro.begin`_ intrinsic gets duplicated by optimization passes such as
318318
jump-threading.
319319

320320
The `cleanup` block destroys the coroutine frame. The `coro.free`_ intrinsic,
@@ -2149,7 +2149,7 @@ CoroEarly
21492149
The CoroEarly pass ensures later middle end passes correctly interpret coroutine
21502150
semantics and lowers coroutine intrinsics that not needed to be preserved to
21512151
help later coroutine passes. This pass lowers `coro.promise`_, `coro.frame`_ and
2152-
`coro.done`_ intrinsics. Afterwards, it replace uses of promise alloca with
2152+
`coro.done`_ intrinsics. Afterwards, it replaces uses of promise alloca with
21532153
`coro.promise`_ intrinsic.
21542154

21552155
.. _CoroSplit:
@@ -2188,7 +2188,7 @@ Attributes
21882188
coro_only_destroy_when_complete
21892189
-------------------------------
21902190

2191-
When the coroutine are marked with coro_only_destroy_when_complete, it indicates
2191+
When the coroutine is marked with coro_only_destroy_when_complete, it indicates
21922192
the coroutine must reach the final suspend point when it get destroyed.
21932193

21942194
This attribute only works for switched-resume coroutines now.
@@ -2199,7 +2199,7 @@ coro_elide_safe
21992199
When a Call or Invoke instruction to switch ABI coroutine `f` is marked with
22002200
`coro_elide_safe`, CoroSplitPass generates a `f.noalloc` ramp function.
22012201
`f.noalloc` has one more argument than its original ramp function `f`, which is
2202-
the pointer to the allocated frame. `f.noalloc` also suppressed any allocations
2202+
the pointer to the allocated frame. `f.noalloc` also suppresses any allocations
22032203
or deallocations that may be guarded by `@llvm.coro.alloc` and `@llvm.coro.free`.
22042204

22052205
CoroAnnotationElidePass performs the heap elision when possible. Note that for

llvm/docs/Docker.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ to fill out in order to produce Dockerfiles for a new docker image.
1616
Why?
1717
----
1818
Docker images provide a way to produce binary distributions of
19-
software inside a controlled environment. Having Dockerfiles to builds docker images
19+
software inside a controlled environment. Having Dockerfiles to build docker images
2020
inside LLVM repo makes them much more discoverable than putting them into any other
2121
place.
2222

@@ -35,7 +35,7 @@ A snapshot of a docker container filesystem is called a *docker image*.
3535
One can start a container from a prebuilt docker image.
3636

3737
Docker images are built from a so-called *Dockerfile*, a source file written in
38-
a specialized language that defines instructions to be used when build
38+
a specialized language that defines instructions to be used when building
3939
the docker image (see `official
4040
documentation <https://docs.docker.com/engine/reference/builder/>`_ for more
4141
details). A minimal Dockerfile typically contains a base image and a number

llvm/docs/Extensions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ emission of Variable Length Arrays (VLAs).
792792
The Windows ARM Itanium ABI extends the base ABI by adding support for emitting
793793
a dynamic stack allocation. When emitting a variable stack allocation, a call
794794
to ``__chkstk`` is emitted unconditionally to ensure that guard pages are setup
795-
properly. The emission of this stack probe emission is handled similar to the
795+
properly. The emission of this stack probe emission is handled similarly to the
796796
standard stack probe emission.
797797

798798
The MSVC environment does not emit code for VLAs currently.
@@ -813,7 +813,7 @@ in the following fashion:
813813
sub sp, sp, x15, lsl #4
814814
815815
However, this has the limitation of 256 MiB (±128MiB). In order to accommodate
816-
larger binaries, LLVM supports the use of ``-mcmodel=large`` to allow a 8GiB
816+
larger binaries, LLVM supports the use of ``-mcmodel=large`` to allow an 8GiB
817817
(±4GiB) range via a slight deviation. It will generate an indirect jump as
818818
follows:
819819

llvm/docs/FatLTO.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This pipeline will:
3838
3939
Previously, we conservatively ran independent pipelines on separate copies
4040
of the LLVM module to generate the bitcode section and the object code,
41-
which happen to be identical to those used outside of FatLTO. While that
41+
which happened to be identical to those used outside of FatLTO. While that
4242
resulted in compiled artifacts that were identical to those produced by the
4343
default and (Thin)LTO pipelines, module cloning led to some cases of
4444
miscompilation, and we have moved away from trying to keep bitcode

0 commit comments

Comments
 (0)