[llvm] r216027 - LangRef: Move example of function-scope uselistorder to a function
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Aug 19 14:48:04 PDT 2014
Author: dexonsmith
Date: Tue Aug 19 16:48:04 2014
New Revision: 216027
URL: http://llvm.org/viewvc/llvm-project?rev=216027&view=rev
Log:
LangRef: Move example of function-scope uselistorder to a function
Should make the example added in r216025 a little more clear.
Modified:
llvm/trunk/docs/LangRef.rst
Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=216027&r1=216026&r2=216027&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Tue Aug 19 16:48:04 2014
@@ -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 }
More information about the llvm-commits
mailing list