@@ -10,7 +10,7 @@ Introduction
1010
1111This document aims to provide a high-level overview of the design and
1212implementation of the ORC JIT APIs. Except where otherwise stated, all
13- discussion applies to the design of the APIs as of LLVM verison 9 (ORCv2).
13+ discussion applies to the design of the APIs as of LLVM version 9 (ORCv2).
1414
1515Use-cases
1616=========
@@ -19,7 +19,7 @@ ORC provides a modular API for building JIT compilers. There are a range
1919of use cases for such an API. For example:
2020
21211. The LLVM tutorials use a simple ORC-based JIT class to execute expressions
22- compiled from a toy languge : Kaleidoscope.
22+ compiled from a toy language : Kaleidoscope.
2323
24242. The LLVM debugger, LLDB, uses a cross-compiling JIT for expression
2525evaluation. In this use case, cross compilation allows expressions compiled
@@ -31,7 +31,7 @@ optimizations within an existing JIT infrastructure.
3131
32324. In interpreters and REPLs, e.g. Cling (C++) and the Swift interpreter.
3333
34- By adoping a modular, library-based design we aim to make ORC useful in as many
34+ By adopting a modular, library-based design we aim to make ORC useful in as many
3535of these contexts as possible.
3636
3737Features
@@ -237,7 +237,7 @@ but they may also wrap a jit-linker directly (if the program representation
237237backing the definitions is an object file), or may even be a class that writes
238238bits directly into memory (for example, if the definitions are
239239stubs). Materialization is the blanket term for any actions (compiling, linking,
240- splatting bits, registering with runtimes, etc.) that are requried to generate a
240+ splatting bits, registering with runtimes, etc.) that are required to generate a
241241symbol definition that is safe to call or access.
242242
243243As each materializer completes its work it notifies the JITDylib, which in turn
@@ -495,7 +495,7 @@ or creating any Modules attached to it. E.g.
495495 TP.wait();
496496
497497To make exclusive access to Modules easier to manage the ThreadSafeModule class
498- provides a convenince function, ``withModuleDo ``, that implicitly (1) locks the
498+ provides a convenience function, ``withModuleDo ``, that implicitly (1) locks the
499499associated context, (2) runs a given function object, (3) unlocks the context,
500500and (3) returns the result generated by the function object. E.g.
501501
0 commit comments