@@ -12,7 +12,7 @@ Welcome to the LLVM project!
1212
1313The LLVM project has multiple components. The core of the project is
1414itself 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
1616object files. Tools include an assembler, disassembler, bitcode analyzer, and
1717bitcode 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
151151For stand-alone builds, you must have an llvm install that is configured
152152properly 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,
154154like this:
155155
156156.. code-block :: console
@@ -195,7 +195,7 @@ clang clang, cmake CLANG_INCLUDE_TESTS=ON (Required for check
195195lld 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.
228228This may save you some trouble by knowing ahead of time what hardware and
229229software 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
401401have a modern Clang as the system compiler.
402402
403403However, 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
405405compiler even on such a system. However, if at all possible, we encourage you
406406to use a recent version of a distribution with a modern system compiler that
407407meets 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
409409well tested or set up to build on Linux until relatively recently. As
410410a consequence, this guide suggests just using libstdc++ and a modern GCC as the
411411initial 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
666666define compiler flags and variables used during the CMake test operations.
667667
668668The 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
670670invocation can generate build files targeting iOS. This will work on macOS
671671with 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
0 commit comments