summaryrefslogtreecommitdiffstats
path: root/llvm/docs/ProgrammersManual.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-05 23:18:20 +0000
committerChris Lattner <sabre@nondot.org>2011-04-05 23:18:20 +0000
commita76507fdc3f2da246165ffde8ee96fd88f1b59b0 (patch)
tree9b9b9b2e982f275dff5c1f1a0b5c1034d81d6e6e /llvm/docs/ProgrammersManual.html
parentd135c696c086c19e495687f9094ed009a04ce93d (diff)
downloadbcm5719-llvm-a76507fdc3f2da246165ffde8ee96fd88f1b59b0.tar.gz
bcm5719-llvm-a76507fdc3f2da246165ffde8ee96fd88f1b59b0.zip
mention llvm::ArrayRef, which should be use much more pervasively than
it already is. llvm-svn: 128954
Diffstat (limited to 'llvm/docs/ProgrammersManual.html')
-rw-r--r--llvm/docs/ProgrammersManual.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/docs/ProgrammersManual.html b/llvm/docs/ProgrammersManual.html
index a280144eb61..c46f596faff 100644
--- a/llvm/docs/ProgrammersManual.html
+++ b/llvm/docs/ProgrammersManual.html
@@ -56,6 +56,7 @@ option</a></li>
<ul>
<li><a href="#ds_sequential">Sequential Containers (std::vector, std::list, etc)</a>
<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_heaparrays">Heap Allocated Arrays</a></li>
<li><a href="#dss_smallvector">"llvm/ADT/SmallVector.h"</a></li>
@@ -891,6 +892,21 @@ needs. Pick the first in this section that will do what you want.
<!-- _______________________________________________________________________ -->
<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">
<a name="dss_fixedarrays">Fixed Size Arrays</a>
</div>
OpenPOWER on IntegriCloud