projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7838818
)
LangRef: Move example of function-scope uselistorder to a function
author
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Tue, 19 Aug 2014 21:48:04 +0000
(21:48 +0000)
committer
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Tue, 19 Aug 2014 21:48:04 +0000
(21:48 +0000)
Should make the example added in r216025 a little more clear.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216027
91177308
-0d34-0410-b5e6-
96231b3b80d8
docs/LangRef.rst
patch
|
blob
|
history
diff --git
a/docs/LangRef.rst
b/docs/LangRef.rst
index 649df4c58782d4b155024d600462f862bb0aa02a..652aeef2e20fb30f880db63b2737850f273dc0ec 100644
(file)
--- a/
docs/LangRef.rst
+++ b/
docs/LangRef.rst
@@
-1778,9
+1778,16
@@
function's scope.
::
- ; At function scope.
- uselistorder i32 %arg1, { 1, 0, 2 }
- uselistorder label %bb, { 1, 0 }
+ define void @foo(i32 %arg1, i32 %arg2) {
+ entry:
+ ; ... instructions ...
+ bb:
+ ; ... instructions ...
+
+ ; At function scope.
+ uselistorder i32 %arg1, { 1, 0, 2 }
+ uselistorder label %bb, { 1, 0 }
+ }
; At global scope.
uselistorder i32* @global, { 1, 2, 0 }