diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-18 01:40:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-18 01:40:02 +0000 |
commit | 9d69d4aadd4a58aba5634d5c3d2c2a6d8d284134 (patch) | |
tree | 729c27921082545607c3ff4c6499c8353b612b9f /docs | |
parent | 8d4dd79526c434b9346d810dbee5a91e63b86bdf (diff) | |
download | external_llvm-9d69d4aadd4a58aba5634d5c3d2c2a6d8d284134.zip external_llvm-9d69d4aadd4a58aba5634d5c3d2c2a6d8d284134.tar.gz external_llvm-9d69d4aadd4a58aba5634d5c3d2c2a6d8d284134.tar.bz2 |
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')
-rw-r--r-- | docs/ProgrammersManual.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 5565973..bfa721d 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"><vector></a></li> <li><a href="#dss_deque"><deque></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<Type></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> |