Skip to content

Commit b9f71be

Browse files
committed
copyedits
1 parent 6d83474 commit b9f71be

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ The root unit of organization of an LLVM IR program is a `Module`
1313
let module = Module(name: "main")
1414
```
1515

16-
LLVM IR is construction is done with an `IRBuilder` object. An `IRBuilder` is a cursor pointed inside a context, and as such has ways of extending that context and moving around inside of it.
16+
LLVM IR construction is handled by `IRBuilder` objects. An `IRBuilder` is a cursor pointed inside a context, and as such has ways of extending that context and moving around inside of it.
1717

18-
Defining a simple function and moving the cursor to a point where we can begin inserting instructions is done like so:
18+
Defining a function and moving the cursor to a point where we can begin inserting instructions is done like so:
1919

2020
```swift
2121
let builder = IRBuilder(module: module)
@@ -183,10 +183,10 @@ print(fn(false)) // 0.0112359550561798...
183183

184184
## Installation
185185

186-
There are a couple, annoying steps you need to get it working before it'll
187-
build.
186+
There are a couple annoying steps you need to accomplish before building
187+
LLVMSwift:
188188

189-
- Install LLVM 4.0 using your favorite package manager. For example:
189+
- Install LLVM 5.0+ using your favorite package manager. For example:
190190
- `brew install llvm`
191191
- Ensure `llvm-config` is in your `PATH`
192192
- That will reside in the `/bin` folder wherever your package manager
@@ -197,6 +197,12 @@ build.
197197
Once you do that, you can add LLVMSwift as a dependency for your own Swift
198198
compiler projects!
199199

200+
### Installation with Swift Package Manager
201+
202+
```swift
203+
.package(url: "https://github.com/llvm-swift/LLVMSwift.git", from: "0.2.0")
204+
```
205+
200206
### Installation without Swift Package Manager
201207

202208
We really recommend using SwiftPM with LLVMSwift, but if your project is
@@ -223,3 +229,4 @@ all its code generation.
223229

224230
This project is released under the MIT license, a copy of which is available
225231
in this repo.
232+

0 commit comments

Comments
 (0)