aboutsummaryrefslogtreecommitdiffstats
path: root/docs/LangRef.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-05-22 07:18:08 +0000
committerChris Lattner <sabre@nondot.org>2011-05-22 07:18:08 +0000
commit8645d1acc0c8504fd99690ef8ba6dedd73381fa9 (patch)
tree2d4645f2011ea4596bd1dd31909a1dab7dba7969 /docs/LangRef.html
parent98a42b2fc39f3fc46905fb98078cce4ce4e0a827 (diff)
downloadexternal_llvm-8645d1acc0c8504fd99690ef8ba6dedd73381fa9.zip
external_llvm-8645d1acc0c8504fd99690ef8ba6dedd73381fa9.tar.gz
external_llvm-8645d1acc0c8504fd99690ef8ba6dedd73381fa9.tar.bz2
insertvalue takes a variable number of arguments, document this, fixing PR9935.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r--docs/LangRef.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 58da875..91298ac 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -4302,7 +4302,7 @@ that the invoke/unwind semantics are likely to change in future versions.</p>
<h5>Syntax:</h5>
<pre>
- &lt;result&gt; = insertvalue &lt;aggregate type&gt; &lt;val&gt;, &lt;ty&gt; &lt;elt&gt;, &lt;idx&gt; <i>; yields &lt;aggregate type&gt;</i>
+ &lt;result&gt; = insertvalue &lt;aggregate type&gt; &lt;val&gt;, &lt;ty&gt; &lt;elt&gt;, &lt;idx&gt;{, <idx>}* <i>; yields &lt;aggregate type&gt;</i>
</pre>
<h5>Overview:</h5>
@@ -4326,8 +4326,9 @@ that the invoke/unwind semantics are likely to change in future versions.</p>
<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>