Skip to content

Commit 1229323

Browse files
[llvm] Improve grammar and punctuation of several documents (#149630)
1 parent 8bb97d2 commit 1229323

File tree

3 files changed

+58
-58
lines changed

3 files changed

+58
-58
lines changed

llvm/docs/GettingStarted.rst

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Welcome to the LLVM project!
1212

1313
The LLVM project has multiple components. The core of the project is
1414
itself called "LLVM". This contains all of the tools, libraries, and header
15-
files needed to process intermediate representations and converts it into
15+
files needed to process intermediate representations and convert them into
1616
object files. Tools include an assembler, disassembler, bitcode analyzer, and
1717
bitcode optimizer. It also contains basic regression tests.
1818

@@ -32,11 +32,11 @@ Getting the Source Code and Building LLVM
3232
#. Check out LLVM (including subprojects like Clang):
3333

3434
* ``git clone https://github.com/llvm/llvm-project.git``
35-
* Or, on windows:
35+
* Or, on Windows:
3636

3737
``git clone --config core.autocrlf=false
3838
https://github.com/llvm/llvm-project.git``
39-
* To save storage and speed-up the checkout time, you may want to do a
39+
* To save storage and speed up the checkout time, you may want to do a
4040
`shallow clone <https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt>`_.
4141
For example, to get the latest revision of the LLVM project, use
4242

@@ -71,7 +71,7 @@ Getting the Source Code and Building LLVM
7171

7272
Some common options:
7373

74-
* ``-DLLVM_ENABLE_PROJECTS='...'`` --- semicolon-separated list of the LLVM
74+
* ``-DLLVM_ENABLE_PROJECTS='...'`` --- A semicolon-separated list of the LLVM
7575
subprojects you'd like to additionally build. Can include any of: clang,
7676
clang-tools-extra, lldb, lld, polly, or cross-project-tests.
7777

@@ -82,10 +82,10 @@ Getting the Source Code and Building LLVM
8282
pathname of where you want the LLVM tools and libraries to be installed
8383
(default ``/usr/local``).
8484

85-
* ``-DCMAKE_BUILD_TYPE=type`` --- Controls optimization level and debug
85+
* ``-DCMAKE_BUILD_TYPE=type`` --- Controls the optimization level and debug
8686
information of the build. Valid options for *type* are ``Debug``,
8787
``Release``, ``RelWithDebInfo``, and ``MinSizeRel``. For more detailed
88-
information see :ref:`CMAKE_BUILD_TYPE <cmake_build_type>`.
88+
information, see :ref:`CMAKE_BUILD_TYPE <cmake_build_type>`.
8989

9090
* ``-DLLVM_ENABLE_ASSERTIONS=ON`` --- Compile with assertion checks enabled
9191
(default is ON for Debug builds, OFF for all other build types).
@@ -124,7 +124,7 @@ Getting the Source Code and Building LLVM
124124

125125
``ninja -C build check-llvm``
126126

127-
This will setup an LLVM build with debugging info, then compile LLVM and
127+
This will set up an LLVM build with debugging info, then compile LLVM and
128128
run LLVM tests.
129129

130130
* For more detailed information on CMake options, see `CMake <CMake.html>`__
@@ -150,7 +150,7 @@ page.
150150

151151
For stand-alone builds, you must have an llvm install that is configured
152152
properly to be consumable by stand-alone builds of the other projects.
153-
This could be a distro provided LLVM install, or you can build it yourself,
153+
This could be a distro-provided LLVM install, or you can build it yourself,
154154
like this:
155155

156156
.. code-block:: console
@@ -195,7 +195,7 @@ clang clang, cmake CLANG_INCLUDE_TESTS=ON (Required for check
195195
lld lld, cmake
196196
============ ======================== ======================
197197

198-
Example for building stand-alone `clang`:
198+
Example of building stand-alone `clang`:
199199

200200
.. code-block:: console
201201
@@ -224,7 +224,7 @@ Example for building stand-alone `clang`:
224224
Requirements
225225
============
226226

227-
Before you begin to use the LLVM system, review the requirements given below.
227+
Before you begin to use the LLVM system, review the requirements below.
228228
This may save you some trouble by knowing ahead of time what hardware and
229229
software you will need.
230230

@@ -265,7 +265,7 @@ Windows on Arm ARM64 Visual Studio, Clang\ :sup:`4`
265265

266266
#. Code generation supported for Pentium processors and up
267267
#. Code generation supported for 32-bit ABI only
268-
#. To use LLVM modules on Win32-based system, you may configure LLVM
268+
#. To use LLVM modules on a Win32-based system, you may configure LLVM
269269
with ``-DBUILD_SHARED_LIBS=On``.
270270
#. Visual Studio alone can compile LLVM. When using Clang, you
271271
must also have Visual Studio installed.
@@ -309,7 +309,7 @@ Package Version Notes
309309
#. Only needed if you want to run the automated test suite in the
310310
``llvm/test`` directory, or if you plan to utilize any Python libraries,
311311
utilities, or bindings.
312-
#. Optional, adds compression / uncompression capabilities to selected LLVM
312+
#. Optional, adds compression/uncompression capabilities to selected LLVM
313313
tools.
314314
#. Optional, you can use any other build tool supported by CMake.
315315
#. Only needed when building libc with New Headergen. Mainly used by libc.
@@ -401,11 +401,11 @@ Studio 2019 (or later), or a recent version of mingw64. FreeBSD 10.0 and newer
401401
have a modern Clang as the system compiler.
402402

403403
However, some Linux distributions and some other or older BSDs sometimes have
404-
extremely old versions of GCC. These steps attempt to help you upgrade you
404+
extremely old versions of GCC. These steps attempt to help you upgrade your
405405
compiler even on such a system. However, if at all possible, we encourage you
406406
to use a recent version of a distribution with a modern system compiler that
407407
meets these requirements. Note that it is tempting to install a prior
408-
version of Clang and libc++ to be the host compiler, however libc++ was not
408+
version of Clang and libc++ to be the host compiler; however, libc++ was not
409409
well tested or set up to build on Linux until relatively recently. As
410410
a consequence, this guide suggests just using libstdc++ and a modern GCC as the
411411
initial host in a bootstrap, and then using Clang (and potentially libc++).
@@ -514,11 +514,11 @@ appropriate pathname on your local system. All these paths are absolute:
514514

515515
``SRC_ROOT``
516516

517-
This is the top level directory of the LLVM source tree.
517+
This is the top-level directory of the LLVM source tree.
518518

519519
``OBJ_ROOT``
520520

521-
This is the top level directory of the LLVM object tree (i.e. the tree where
521+
This is the top-level directory of the LLVM object tree (i.e. the tree where
522522
object files and compiled programs will be placed. It can be the same as
523523
SRC_ROOT).
524524

@@ -666,7 +666,7 @@ cross-compiling CMake provides a variable ``CMAKE_TOOLCHAIN_FILE`` which can
666666
define compiler flags and variables used during the CMake test operations.
667667

668668
The result of such a build is executables that are not runnable on the build
669-
host but can be executed on the target. As an example the following CMake
669+
host but can be executed on the target. As an example, the following CMake
670670
invocation can generate build files targeting iOS. This will work on macOS
671671
with the latest Xcode:
672672

@@ -770,7 +770,7 @@ Generates system build files.
770770
- Some simple examples showing how to use LLVM as a compiler for a custom
771771
language - including lowering, optimization, and code generation.
772772

773-
- Kaleidoscope Tutorial: Kaleidoscope language tutorial run through the
773+
- Kaleidoscope Tutorial: Kaleidoscope language tutorial runs through the
774774
implementation of a nice little compiler for a non-trivial language
775775
including a hand-written lexer, parser, AST, as well as code generation
776776
support using LLVM- both static (ahead of time) and various approaches to
@@ -858,7 +858,7 @@ share code among the `tools`_.
858858

859859
``llvm/lib/Support/``
860860

861-
Source code that corresponding to the header files in ``llvm/include/ADT/``
861+
Source code that corresponds to the header files in ``llvm/include/ADT/``
862862
and ``llvm/include/Support/``.
863863

864864
``llvm/bindings``
@@ -1051,7 +1051,7 @@ Example with clang
10511051
10521052
% lli hello.bc
10531053
1054-
The second examples shows how to invoke the LLVM JIT, :doc:`lli
1054+
The second example shows how to invoke the LLVM JIT, :doc:`lli
10551055
<CommandGuide/lli>`.
10561056

10571057
#. Use the ``llvm-dis`` utility to take a look at the LLVM assembly code:
@@ -1163,7 +1163,7 @@ following options with cmake:
11631163

11641164
Consider setting this to ``ON`` if you require a debug build, as this will ease
11651165
memory pressure on the linker. This will make linking much faster, as the
1166-
binaries will not contain any of the debug information. Instead the debug
1166+
binaries will not contain any of the debug information. Instead, the debug
11671167
information is in a separate DWARF object file (with the extension ``.dwo``).
11681168
This only applies to host platforms using ELF, such as Linux.
11691169

llvm/docs/LangRef.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,7 +2892,7 @@ site, these bundles may contain any values that are needed by the
28922892
generated code. For more details, see :ref:`GC Transitions
28932893
<gc_transition_args>`.
28942894

2895-
The bundle contain an arbitrary list of Values which need to be passed
2895+
The bundle contains an arbitrary list of Values which need to be passed
28962896
to GC transition code. They will be lowered and passed as operands to
28972897
the appropriate GC_TRANSITION nodes in the selection DAG. It is assumed
28982898
that these arguments must be available before and after (but not
@@ -2903,7 +2903,7 @@ necessarily during) the execution of the callee.
29032903
Assume Operand Bundles
29042904
^^^^^^^^^^^^^^^^^^^^^^
29052905

2906-
Operand bundles on an :ref:`llvm.assume <int_assume>` allows representing
2906+
Operand bundles on an :ref:`llvm.assume <int_assume>` allow representing
29072907
assumptions, such as that a :ref:`parameter attribute <paramattrs>` or a
29082908
:ref:`function attribute <fnattrs>` holds for a certain value at a certain
29092909
location. Operand bundles enable assumptions that are either hard or impossible
@@ -2922,11 +2922,11 @@ restricted form:
29222922

29232923
"<tag>"([ <holds for value> [, <attribute argument>] ])
29242924

2925-
* The tag of the operand bundle is usually the name of attribute that can be
2926-
assumed to hold. It can also be `ignore`, this tag doesn't contain any
2925+
* The tag of the operand bundle is usually the name of the attribute that can be
2926+
assumed to hold. It can also be `ignore`; this tag doesn't contain any
29272927
information and should be ignored.
2928-
* The first argument if present is the value for which the attribute hold.
2929-
* The second argument if present is an argument of the attribute.
2928+
* The first argument, if present, is the value for which the attribute holds.
2929+
* The second argument, if present, is an argument of the attribute.
29302930

29312931
If there are no arguments the attribute is a property of the call location.
29322932

@@ -2968,7 +2968,7 @@ the behavior is undefined, unless one of the following exceptions applies:
29682968
dereferenceable at later pointers, e.g. because it could have been freed.
29692969

29702970
In addition to allowing operand bundles encoding function and parameter
2971-
attributes, an assume operand bundle my also encode a ``separate_storage``
2971+
attributes, an assume operand bundle may also encode a ``separate_storage``
29722972
operand bundle. This has the form:
29732973

29742974
.. code-block:: llvm
@@ -3115,7 +3115,7 @@ Note that the assembly string *must* be parseable by LLVM's integrated assembler
31153115
Data Layout
31163116
-----------
31173117

3118-
A module may specify a target specific data layout string that specifies
3118+
A module may specify a target-specific data layout string that specifies
31193119
how data is to be laid out in memory. The syntax for the data layout is
31203120
simply:
31213121

@@ -3611,7 +3611,7 @@ operation may modify the memory at that address. A volatile operation
36113611
may not modify any other memory accessible by the module being compiled.
36123612
A volatile operation may not call any code in the current module.
36133613

3614-
In general (without target specific context), the address space of a
3614+
In general (without target-specific context), the address space of a
36153615
volatile operation may not be changed. Different address spaces may
36163616
have different trapping behavior when dereferencing an invalid
36173617
pointer.
@@ -3794,7 +3794,7 @@ If an atomic operation is marked ``syncscope("singlethread")``, it only
37943794
other operations running in the same thread (for example, in signal handlers).
37953795

37963796
If an atomic operation is marked ``syncscope("<target-scope>")``, where
3797-
``<target-scope>`` is a target specific synchronization scope, then it is target
3797+
``<target-scope>`` is a target-specific synchronization scope, then it is target
37983798
dependent if it *synchronizes with* and participates in the seq\_cst total
37993799
orderings of other operations.
38003800

@@ -3896,10 +3896,10 @@ Floating-Point Semantics
38963896
------------------------
38973897

38983898
This section defines the semantics for core floating-point operations on types
3899-
that use a format specified by IEEE-745. These types are: ``half``, ``float``,
3899+
that use a format specified by IEEE-754. These types are: ``half``, ``float``,
39003900
``double``, and ``fp128``, which correspond to the binary16, binary32, binary64,
39013901
and binary128 formats, respectively. The "core" operations are those defined in
3902-
section 5 of IEEE-745, which all have corresponding LLVM operations.
3902+
section 5 of IEEE-754, which all have corresponding LLVM operations.
39033903

39043904
The value returned by those operations matches that of the corresponding
39053905
IEEE-754 operation executed in the :ref:`default LLVM floating-point environment
@@ -8746,11 +8746,11 @@ framework::
87468746
The metadata encoding as lists of lists of options, as opposed to a collapsed
87478747
list of options, is chosen so that the IR encoding can use multiple option
87488748
strings to specify e.g., a single library, while still having that specifier be
8749-
preserved as an atomic element that can be recognized by a target specific
8749+
preserved as an atomic element that can be recognized by a target-specific
87508750
assembly writer or object file emitter.
87518751

87528752
Each individual option is required to be either a valid option for the target's
8753-
linker, or an option that is reserved by the target specific assembly writer or
8753+
linker, or an option that is reserved by the target-specific assembly writer or
87548754
object file emitter. No other aspect of these options is defined by the IR.
87558755

87568756
Dependent Libs Named Metadata
@@ -19508,7 +19508,7 @@ Semantics:
1950819508

1950919509
The '``llvm.set.loop.iterations.*``' intrinsics do not perform any arithmetic
1951019510
on their operand. It's a hint to the backend that can use this to set up the
19511-
hardware-loop count with a target specific instruction, usually a move of this
19511+
hardware-loop count with a target-specific instruction, usually a move of this
1951219512
value to a special register or a hardware-loop instruction.
1951319513

1951419514

@@ -19547,7 +19547,7 @@ Semantics:
1954719547

1954819548
The '``llvm.start.loop.iterations.*``' intrinsics do not perform any arithmetic
1954919549
on their operand. It's a hint to the backend that can use this to set up the
19550-
hardware-loop count with a target specific instruction, usually a move of this
19550+
hardware-loop count with a target-specific instruction, usually a move of this
1955119551
value to a special register or a hardware-loop instruction.
1955219552

1955319553
'``llvm.test.set.loop.iterations.*``' Intrinsic
@@ -19583,7 +19583,7 @@ Semantics:
1958319583

1958419584
The '``llvm.test.set.loop.iterations.*``' intrinsics do not perform any
1958519585
arithmetic on their operand. It's a hint to the backend that can use this to
19586-
set up the hardware-loop count with a target specific instruction, usually a
19586+
set up the hardware-loop count with a target-specific instruction, usually a
1958719587
move of this value to a special register or a hardware-loop instruction.
1958819588
The result is the conditional value of whether the given count is not zero.
1958919589

@@ -19621,7 +19621,7 @@ Semantics:
1962119621

1962219622
The '``llvm.test.start.loop.iterations.*``' intrinsics do not perform any
1962319623
arithmetic on their operand. It's a hint to the backend that can use this to
19624-
set up the hardware-loop count with a target specific instruction, usually a
19624+
set up the hardware-loop count with a target-specific instruction, usually a
1962519625
move of this value to a special register or a hardware-loop instruction.
1962619626
The result is a pair of the input and a conditional value of whether the
1962719627
given count is not zero.

0 commit comments

Comments
 (0)