[coroutine] Add missing presplitcoroutine attr to example
authorItay Bookstein <itay.bookstein@nextsilicon.com>
Thu, 22 Jun 2023 07:23:52 +0000 (10:23 +0300)
committerItay Bookstein <itay.bookstein@nextsilicon.com>
Thu, 22 Jun 2023 07:23:52 +0000 (10:23 +0300)
Signed-off-by: Itay Bookstein <itay.bookstein@nextsilicon.com>
llvm/docs/Coroutines.rst

index 696a6ae..46dc2dc 100644 (file)
@@ -285,7 +285,7 @@ The LLVM IR for this coroutine looks like this:
 
 .. code-block:: llvm
 
-  define i8* @f(i32 %n) {
+  define i8* @f(i32 %n) presplitcoroutine {
   entry:
     %id = call token @llvm.coro.id(i32 0, i8* null, i8* null, i8* null)
     %size = call i32 @llvm.coro.size.i32()