[llvm-commits] [llvm] r131850 - /llvm/trunk/docs/LangRef.html
Chris Lattner
sabre at nondot.org
Sun May 22 00:18:09 PDT 2011
Author: lattner
Date: Sun May 22 02:18:08 2011
New Revision: 131850
URL: http://llvm.org/viewvc/llvm-project?rev=131850&view=rev
Log:
insertvalue takes a variable number of arguments, document this, fixing PR9935.
Modified:
llvm/trunk/docs/LangRef.html
Modified: llvm/trunk/docs/LangRef.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.html?rev=131850&r1=131849&r2=131850&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Sun May 22 02:18:08 2011
@@ -4302,7 +4302,7 @@
<h5>Syntax:</h5>
<pre>
- <result> = insertvalue <aggregate type> <val>, <ty> <elt>, <idx> <i>; yields <aggregate type></i>
+ <result> = insertvalue <aggregate type> <val>, <ty> <elt>, <idx>{, <idx>}* <i>; yields <aggregate type></i>
</pre>
<h5>Overview:</h5>
@@ -4326,8 +4326,9 @@
<h5>Example:</h5>
<pre>
- %agg1 = insertvalue {i32, float} undef, i32 1, 0 <i>; yields {i32 1, float undef}</i>
- %agg2 = insertvalue {i32, float} %agg1, float %val, 1 <i>; yields {i32 1, float %val}</i>
+ %agg1 = insertvalue {i32, float} undef, i32 1, 0 <i>; yields {i32 1, float undef}</i>
+ %agg2 = insertvalue {i32, float} %agg1, float %val, 1 <i>; yields {i32 1, float %val}</i>
+ %agg3 = insertvalue {i32, {float}} %agg1, float %val, 1, 0 <i>; yields {i32 1, float %val}</i>
</pre>
</div>
More information about the llvm-commits
mailing list