@@ -12,7 +12,7 @@ Welcome to the LLVM project!
12
12
13
13
The LLVM project has multiple components. The core of the project is
14
14
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
16
16
object files. Tools include an assembler, disassembler, bitcode analyzer, and
17
17
bitcode optimizer. It also contains basic regression tests.
18
18
@@ -32,11 +32,11 @@ Getting the Source Code and Building LLVM
32
32
#. Check out LLVM (including subprojects like Clang):
33
33
34
34
* ``git clone https://github.com/llvm/llvm-project.git ``
35
- * Or, on windows :
35
+ * Or, on Windows :
36
36
37
37
``git clone --config core.autocrlf=false
38
38
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
40
40
`shallow clone <https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt >`_.
41
41
For example, to get the latest revision of the LLVM project, use
42
42
@@ -71,7 +71,7 @@ Getting the Source Code and Building LLVM
71
71
72
72
Some common options:
73
73
74
- * ``-DLLVM_ENABLE_PROJECTS='...' `` --- semicolon-separated list of the LLVM
74
+ * ``-DLLVM_ENABLE_PROJECTS='...' `` --- A semicolon-separated list of the LLVM
75
75
subprojects you'd like to additionally build. Can include any of: clang,
76
76
clang-tools-extra, lldb, lld, polly, or cross-project-tests.
77
77
@@ -82,10 +82,10 @@ Getting the Source Code and Building LLVM
82
82
pathname of where you want the LLVM tools and libraries to be installed
83
83
(default ``/usr/local ``).
84
84
85
- * ``-DCMAKE_BUILD_TYPE=type `` --- Controls optimization level and debug
85
+ * ``-DCMAKE_BUILD_TYPE=type `` --- Controls the optimization level and debug
86
86
information of the build. Valid options for *type * are ``Debug ``,
87
87
``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 >`.
89
89
90
90
* ``-DLLVM_ENABLE_ASSERTIONS=ON `` --- Compile with assertion checks enabled
91
91
(default is ON for Debug builds, OFF for all other build types).
@@ -124,7 +124,7 @@ Getting the Source Code and Building LLVM
124
124
125
125
``ninja -C build check-llvm ``
126
126
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
128
128
run LLVM tests.
129
129
130
130
* For more detailed information on CMake options, see `CMake <CMake.html >`__
@@ -150,7 +150,7 @@ page.
150
150
151
151
For stand-alone builds, you must have an llvm install that is configured
152
152
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,
154
154
like this:
155
155
156
156
.. code-block :: console
@@ -195,7 +195,7 @@ clang clang, cmake CLANG_INCLUDE_TESTS=ON (Required for check
195
195
lld lld, cmake
196
196
============ ======================== ======================
197
197
198
- Example for building stand-alone `clang `:
198
+ Example of building stand-alone `clang `:
199
199
200
200
.. code-block :: console
201
201
@@ -224,7 +224,7 @@ Example for building stand-alone `clang`:
224
224
Requirements
225
225
============
226
226
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.
228
228
This may save you some trouble by knowing ahead of time what hardware and
229
229
software you will need.
230
230
@@ -265,7 +265,7 @@ Windows on Arm ARM64 Visual Studio, Clang\ :sup:`4`
265
265
266
266
#. Code generation supported for Pentium processors and up
267
267
#. 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
269
269
with ``-DBUILD_SHARED_LIBS=On ``.
270
270
#. Visual Studio alone can compile LLVM. When using Clang, you
271
271
must also have Visual Studio installed.
@@ -309,7 +309,7 @@ Package Version Notes
309
309
#. Only needed if you want to run the automated test suite in the
310
310
``llvm/test `` directory, or if you plan to utilize any Python libraries,
311
311
utilities, or bindings.
312
- #. Optional, adds compression / uncompression capabilities to selected LLVM
312
+ #. Optional, adds compression/ uncompression capabilities to selected LLVM
313
313
tools.
314
314
#. Optional, you can use any other build tool supported by CMake.
315
315
#. 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
401
401
have a modern Clang as the system compiler.
402
402
403
403
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
405
405
compiler even on such a system. However, if at all possible, we encourage you
406
406
to use a recent version of a distribution with a modern system compiler that
407
407
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
409
409
well tested or set up to build on Linux until relatively recently. As
410
410
a consequence, this guide suggests just using libstdc++ and a modern GCC as the
411
411
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:
514
514
515
515
``SRC_ROOT ``
516
516
517
- This is the top level directory of the LLVM source tree.
517
+ This is the top- level directory of the LLVM source tree.
518
518
519
519
``OBJ_ROOT ``
520
520
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
522
522
object files and compiled programs will be placed. It can be the same as
523
523
SRC_ROOT).
524
524
@@ -666,7 +666,7 @@ cross-compiling CMake provides a variable ``CMAKE_TOOLCHAIN_FILE`` which can
666
666
define compiler flags and variables used during the CMake test operations.
667
667
668
668
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
670
670
invocation can generate build files targeting iOS. This will work on macOS
671
671
with the latest Xcode:
672
672
@@ -770,7 +770,7 @@ Generates system build files.
770
770
- Some simple examples showing how to use LLVM as a compiler for a custom
771
771
language - including lowering, optimization, and code generation.
772
772
773
- - Kaleidoscope Tutorial: Kaleidoscope language tutorial run through the
773
+ - Kaleidoscope Tutorial: Kaleidoscope language tutorial runs through the
774
774
implementation of a nice little compiler for a non-trivial language
775
775
including a hand-written lexer, parser, AST, as well as code generation
776
776
support using LLVM- both static (ahead of time) and various approaches to
@@ -858,7 +858,7 @@ share code among the `tools`_.
858
858
859
859
``llvm/lib/Support/ ``
860
860
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/ ``
862
862
and ``llvm/include/Support/ ``.
863
863
864
864
``llvm/bindings ``
@@ -1051,7 +1051,7 @@ Example with clang
1051
1051
1052
1052
% lli hello.bc
1053
1053
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
1055
1055
<CommandGuide/lli>`.
1056
1056
1057
1057
#. Use the ``llvm-dis `` utility to take a look at the LLVM assembly code:
@@ -1163,7 +1163,7 @@ following options with cmake:
1163
1163
1164
1164
Consider setting this to ``ON `` if you require a debug build, as this will ease
1165
1165
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
1167
1167
information is in a separate DWARF object file (with the extension ``.dwo ``).
1168
1168
This only applies to host platforms using ELF, such as Linux.
1169
1169
0 commit comments