summaryrefslogtreecommitdiff
path: root/docs/ProgrammersManual.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-18 01:40:02 +0000
committerChris Lattner <sabre@nondot.org>2011-07-18 01:40:02 +0000
commit9d69d4aadd4a58aba5634d5c3d2c2a6d8d284134 (patch)
tree729c27921082545607c3ff4c6499c8353b612b9f /docs/ProgrammersManual.html
parent8d4dd79526c434b9346d810dbee5a91e63b86bdf (diff)
downloadllvm-9d69d4aadd4a58aba5634d5c3d2c2a6d8d284134.tar.gz
llvm-9d69d4aadd4a58aba5634d5c3d2c2a6d8d284134.tar.bz2
llvm-9d69d4aadd4a58aba5634d5c3d2c2a6d8d284134.tar.xz
introduce a new TinyPtrVector class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ProgrammersManual.html')
-rw-r--r--docs/ProgrammersManual.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html
index 5565973ac1..bfa721ddc9 100644
--- a/docs/ProgrammersManual.html
+++ b/docs/ProgrammersManual.html
@@ -59,6 +59,7 @@ option</a></li>
<li><a href="#dss_arrayref">llvm/ADT/ArrayRef.h</a></li>
<li><a href="#dss_fixedarrays">Fixed Size Arrays</a></li>
<li><a href="#dss_heaparrays">Heap Allocated Arrays</a></li>
+ <li><a href="#dss_tinyptrvector">"llvm/ADT/TinyPtrVector.h"</a></li>
<li><a href="#dss_smallvector">"llvm/ADT/SmallVector.h"</a></li>
<li><a href="#dss_vector">&lt;vector&gt;</a></li>
<li><a href="#dss_deque">&lt;deque&gt;</a></li>
@@ -928,6 +929,24 @@ construct those elements actually used).</p>
<!-- _______________________________________________________________________ -->
<h4>
+ <a name="dss_tinyptrvector">"llvm/ADT/TinyPtrVector.h"</a>
+</h4>
+
+
+<div>
+<p><tt>TinyPtrVector&lt;Type&gt;</tt> is a highly specialized collection class
+that is optimized to avoid allocation in the case when a vector has zero or one
+elements. It has two major restrictions: 1) it can only hold values of pointer
+type, and 2) it cannot hold a null pointer.</p>
+
+<p>Since this container is highly specialized, it is rarely used.</p>
+
+</div>
+
+<div>
+
+<!-- _______________________________________________________________________ -->
+<h4>
<a name="dss_smallvector">"llvm/ADT/SmallVector.h"</a>
</h4>