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

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


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1f837265eb08: [Coroutines] Fix a typo in documentation (authored by lxfind).

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


More information about the llvm-commits mailing list