[PATCH] D83563: [Coroutines] Fix a typo in documentation

Xun Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 10 08:59:15 PDT 2020


lxfind created this revision.
lxfind added reviewers: GorNishanov, majnemer.
Herald added subscribers: llvm-commits, modocache.
Herald added a project: LLVM.

In the example, the variable that's crossing suspend point was referred wrongly, fix it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83563

Files:
  llvm/docs/Coroutines.rst


Index: llvm/docs/Coroutines.rst
===================================================================
--- llvm/docs/Coroutines.rst
+++ llvm/docs/Coroutines.rst
@@ -257,10 +257,10 @@
 One of the steps of coroutine lowering is building the coroutine frame. The
 def-use chains are analyzed to determine which objects need be kept alive across
 suspend points. In the coroutine shown in the previous section, use of virtual register 
-`%n.val` is separated from the definition by a suspend point, therefore, it 
+`%inc` is separated from the definition by a suspend point, therefore, it 
 cannot reside on the stack frame since the latter goes away once the coroutine 
 is suspended and control is returned back to the caller. An i32 slot is 
-allocated in the coroutine frame and `%n.val` is spilled and reloaded from that
+allocated in the coroutine frame and `%inc` is spilled and reloaded from that
 slot as needed.
 
 We also store addresses of the resume and destroy functions so that the 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83563.277063.patch
Type: text/x-patch
Size: 991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200710/c767a715/attachment.bin>


More information about the llvm-commits mailing list