projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71302b6
)
[docs] Fix codeblock.
author
Alina Sbirlea
<asbirlea@google.com>
Thu, 17 Mar 2022 22:52:49 +0000
(15:52 -0700)
committer
Alina Sbirlea
<asbirlea@google.com>
Thu, 17 Mar 2022 22:53:20 +0000
(15:53 -0700)
llvm/docs/MemorySSA.rst
patch
|
blob
|
history
diff --git
a/llvm/docs/MemorySSA.rst
b/llvm/docs/MemorySSA.rst
index
2052531
..
46e0660
100644
(file)
--- a/
llvm/docs/MemorySSA.rst
+++ b/
llvm/docs/MemorySSA.rst
@@
-293,6
+293,7
@@
to it.
A code snippet for such a walk looks like this:
.. code-block:: c++
+
MemoryDef *Def; // find who's optimized or defining for this MemoryDef
for (auto& U : Def->uses()) {
MemoryAccess *MA = cast<MemoryAccess>(Use.getUser());
@@
-309,6
+310,7
@@
clobbered by that store by walking the immediate and transitive uses of
the store.
.. code-block:: c++
+
checkUses(MemoryAccess *Def) { // Def can be a MemoryDef or a MemoryPhi.
for (auto& U : Def->uses()) {
MemoryAccess *MA = cast<MemoryAccess>(Use.getUser());