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

Xun Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 13:19:33 PDT 2020


lxfind updated this revision to Diff 291664.
lxfind added a comment.
Herald added subscribers: modimo, wenlei.

rebase


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83563/new/

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.291664.patch
Type: text/x-patch
Size: 991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200914/35efb41b/attachment.bin>


More information about the llvm-commits mailing list