mention llvm::ArrayRef, which should be use much more pervasively than

it already is.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128954 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2011-04-05 23:18:20 +00:00
parent 61f3cf3bc9
commit 8ae4261d3c

View File

@ -56,6 +56,7 @@ option</a></li>
<ul> <ul>
<li><a href="#ds_sequential">Sequential Containers (std::vector, std::list, etc)</a> <li><a href="#ds_sequential">Sequential Containers (std::vector, std::list, etc)</a>
<ul> <ul>
<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_fixedarrays">Fixed Size Arrays</a></li>
<li><a href="#dss_heaparrays">Heap Allocated Arrays</a></li> <li><a href="#dss_heaparrays">Heap Allocated Arrays</a></li>
<li><a href="#dss_smallvector">"llvm/ADT/SmallVector.h"</a></li> <li><a href="#dss_smallvector">"llvm/ADT/SmallVector.h"</a></li>
@ -889,6 +890,21 @@ There are a variety of sequential containers available for you, based on your
needs. Pick the first in this section that will do what you want. needs. Pick the first in this section that will do what you want.
</div> </div>
<!-- _______________________________________________________________________ -->
<div class="doc_subsubsection">
<a name="dss_arrayref">llvm/ADT/ArrayRef.h</a>
</div>
<div class="doc_text">
<p>The llvm::ArrayRef class is the preferred class to use in an interface that
accepts a sequential list of elements in memory and just reads from them. By
taking an ArrayRef, the API can be passed a fixed size array, an std::vector,
an llvm::SmallVector and anything else that is contiguous in memory.
</p>
</div>
<!-- _______________________________________________________________________ --> <!-- _______________________________________________________________________ -->
<div class="doc_subsubsection"> <div class="doc_subsubsection">
<a name="dss_fixedarrays">Fixed Size Arrays</a> <a name="dss_fixedarrays">Fixed Size Arrays</a>