aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-06-18 23:34:26 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-06-18 23:34:26 +0000
commitf6fc855a00b57786a7a9132095165575a5e45312 (patch)
tree8b9da0476de4b0d35aa6509ec99d8396d78143a7 /docs
parent90420105964371571ccacdf47771c6ca05db2e67 (diff)
downloadexternal_llvm-f6fc855a00b57786a7a9132095165575a5e45312.zip
external_llvm-f6fc855a00b57786a7a9132095165575a5e45312.tar.gz
external_llvm-f6fc855a00b57786a7a9132095165575a5e45312.tar.bz2
revert r158660, since Chris has some issues with this patch (namely using code to reprent information only used by the compiler)
Original commit msg: add the 'alloc' metadata node to represent the size of offset of buffers pointed to by pointers. This metadata can be attached to any instruction returning a pointer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.html44
1 files changed, 0 insertions, 44 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 2b81279..9cb7e63 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -105,7 +105,6 @@
<li><a href="#tbaa">'<tt>tbaa</tt>' Metadata</a></li>
<li><a href="#fpmath">'<tt>fpmath</tt>' Metadata</a></li>
<li><a href="#range">'<tt>range</tt>' Metadata</a></li>
- <li><a href="#alloc">'<tt>alloc</tt>' Metadata</a></li>
</ol>
</li>
</ol>
@@ -3078,49 +3077,6 @@ call void @llvm.dbg.value(metadata !24, i64 0, metadata !25)
</pre>
</div>
</div>
-
-<!-- _______________________________________________________________________ -->
-<h4>
- <a name="alloc">'<tt>alloc</tt>' Metadata</a>
-</h4>
-
-<div>
-
-<p><tt>alloc</tt> metadata may be attached to any instruction returning a
- pointer. It can be used to express the size and offset relative to the
- beginning of the buffer pointed by.</p>
-
-<blockquote>
-
-<p>The first parameter is a function that returns the size of the buffer, and
- the second (optional) parameter is a function that returns the offset from
- the beginning of the buffer. If the second parameter is not present or null,
- the offset is assumed to be null. Both functions must be either readonly or
- readnone.</p>
-<p><tt>alloc</tt> metadata can have additional parameters, which are passed to
- the size and offset functions when they are evaluated. Therefore the size and
- offset functions must have the same signature.</p>
-
-</blockquote>
-
-
-<p>Examples:</p>
-<div class="doc_code">
-<pre>
- ; size of buffer allocated by this call is my_malloc_size(%s), and offset=0
- %a = call my_malloc(%s), !alloc !{i32 (i32)* @my_malloc_size, null, i32 %s}
-
- ; size of the buffer pointed by *ptr is size(%x), and offset=offset(%x)
- %b = load i8** %foo, !alloc !{i32 (i32)* @size, i32 (i32)* @offset, i32 %x}
-
- ; size of buffer allocated by this call is foo_size(), and offset=0
- %a = call alloc_foo(%s), !alloc !0
-...
-!0 = metadata {i32 ()* @foo_size}
-</pre>
-</div>
-</div>
-
</div>
</div>