@@ -193,7 +193,7 @@ Values live across a suspend point need to be stored in the coroutine frame to
193193be available in the continuation function. This frame is stored as a tail to the
194194`async context `.
195195
196- Every suspend point takes an `context projection function ` argument which
196+ Every suspend point takes a `context projection function ` argument which
197197describes how-to obtain the continuations `async context ` and every suspend
198198point has an associated `resume function ` denoted by the
199199`llvm.coro.async.resume ` intrinsic. The coroutine is resumed by calling this
@@ -221,7 +221,7 @@ a parameter to the `llvm.coro.suspend.async` intrinsic.
221221 ptr %resume_func_ptr,
222222 ptr %context_projection_function
223223
224- The frontend should provide a `async function pointer ` struct associated with
224+ The frontend should provide an `async function pointer ` struct associated with
225225each async coroutine by `llvm.coro.id.async `'s argument. The initial size and
226226alignment of the `async context ` must be provided as arguments to the
227227`llvm.coro.id.async ` intrinsic. Lowering will update the size entry with the
@@ -314,7 +314,7 @@ coroutine handle. The second parameter of `coro.begin` is given a block of memor
314314to be used if the coroutine frame needs to be allocated dynamically.
315315
316316The `coro.id `_ intrinsic serves as coroutine identity useful in cases when the
317- `coro.begin `_ intrinsic get duplicated by optimization passes such as
317+ `coro.begin `_ intrinsic gets duplicated by optimization passes such as
318318jump-threading.
319319
320320The `cleanup ` block destroys the coroutine frame. The `coro.free `_ intrinsic,
@@ -2149,7 +2149,7 @@ CoroEarly
21492149The CoroEarly pass ensures later middle end passes correctly interpret coroutine
21502150semantics and lowers coroutine intrinsics that not needed to be preserved to
21512151help later coroutine passes. This pass lowers `coro.promise `_, `coro.frame `_ and
2152- `coro.done `_ intrinsics. Afterwards, it replace uses of promise alloca with
2152+ `coro.done `_ intrinsics. Afterwards, it replaces uses of promise alloca with
21532153`coro.promise `_ intrinsic.
21542154
21552155.. _CoroSplit :
@@ -2188,7 +2188,7 @@ Attributes
21882188coro_only_destroy_when_complete
21892189-------------------------------
21902190
2191- When the coroutine are marked with coro_only_destroy_when_complete, it indicates
2191+ When the coroutine is marked with coro_only_destroy_when_complete, it indicates
21922192the coroutine must reach the final suspend point when it get destroyed.
21932193
21942194This attribute only works for switched-resume coroutines now.
@@ -2199,7 +2199,7 @@ coro_elide_safe
21992199When a Call or Invoke instruction to switch ABI coroutine `f ` is marked with
22002200`coro_elide_safe `, CoroSplitPass generates a `f.noalloc ` ramp function.
22012201`f.noalloc ` has one more argument than its original ramp function `f `, which is
2202- the pointer to the allocated frame. `f.noalloc ` also suppressed any allocations
2202+ the pointer to the allocated frame. `f.noalloc ` also suppresses any allocations
22032203or deallocations that may be guarded by `@llvm.coro.alloc ` and `@llvm.coro.free `.
22042204
22052205CoroAnnotationElidePass performs the heap elision when possible. Note that for
0 commit comments